17488 Posts in 4473 Topics by 1978 members
| Go to End | ||
| Author | Topic: | 3572 Views |
-
Re: Cascading Style sheets, themes, media and alternative style sheets

22 February 2008 at 6:10pm
What is the smartest way to include a special style sheet that is only in existence for one page and is quite large?
I have tried to over-ride the init function for that page type in its controller:
class Widget_Controller extends Page_Controller {
function init() {
parent::init();
Requirements::themedCSS("widgets.css");
}
}but to no avail. Should this work?
-
Re: Cascading Style sheets, themes, media and alternative style sheets

19 March 2008 at 8:47pm
willr: I don't use it often but I have used it before. Adding a title to a css sheet enables you to have alternative style sheets set up in the document that have to be 'selected'. This lets you do reasonably useless things like switching themes, and reasonably useful things like having alternative high contrast stylesheet for users with impaired vision, or an alternative stylesheet with a larger font size etc.
We use them on our corporate site (http://designcity.com.au/) to increase the font size.
| 3572 Views | ||
| Go to Top |


