Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Eddie Foreman 215 posts 288 karma points
    Aug 18, 2010 @ 12:30
    Eddie Foreman
    0

    Styling Dashboard UserControl

    Hi Guys

    Just created a couple of UserControls to be used in the dashboard of the members section.  Just wondering what is the best way of styling the control.  Ideally I would like to use an external style sheet. Have tried to add some rules to the /umbraco_client/ui/default.css, but this does not seem to work.  Only in FireBug.

    Using Umbraco v 4.0.4.2

    Thanks

    Eddie

  • Sascha Wolter 615 posts 1101 karma points
    Aug 18, 2010 @ 23:09
    Sascha Wolter
    0

    Hi Eddie,

    can't you just create your own stylesheet, place it somewhere outside of umbraco e.g. if your user control is in /usercontrols/dashboard put it in a sub directory /css and add it at the top of your user control like you would on any page, e.g.

    <link href="css/customstyles.css" rel="stylesheet" type="text/css" />

    that should work I think? At least I have no problem e.g. binding a custom jquery.ui library that I need just for a specific user control and don't want to load everytime. Although usually I prefer to put the styles inline at the top if they are just a handfull of rules.

    Does that work for you?

    Sascha

  • Eddie Foreman 215 posts 288 karma points
    Aug 25, 2010 @ 13:58
    Eddie Foreman
    0

    Hi Sascha

    Sorry for the delay in replying.

    In the end I went with a cutsom section and then a custom page to load in the control. And added the link to the style sheet in the header content place holder.

    <asp:Content ContentPlaceHolderID="head" runat="server">
    <link rel="Stylesheet" href="../../css/subscribers.css" type="text/css" />
    </asp:Content>

    Thanks

    Eddie

     

  • Sascha Wolter 615 posts 1101 karma points
    Aug 25, 2010 @ 14:09
    Sascha Wolter
    0

    Excellent :)

  • Julius Bartkus 51 posts 76 karma points
    Aug 03, 2011 @ 11:59
Please Sign in or register to post replies

Write your reply to:

Draft