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.
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.
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.
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.
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
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.
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
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.
Thanks
Eddie
Excellent :)
try this https://github.com/rgrove/lazyload/
is working on a reply...