Log in

View Full Version : Overwrite menubar style sheet for single page



Alan Emmins
09-19-2007, 11:57 AM
We use a standard syle sheet on our site, but in one section I want to over write the style sheet with a new set of styles and then command that page to use the new style sheet and not the default.

My problem is that the default style sheet is embedded throughout the site and we still need that, but when I try to add the new style sheet the page still seems to refer to the default.

Basically, I want to define a new style sheet for a menu bar and want to know if I can wrap it in it's own style sheet, even though the default style sheet exists. Make sense?

boogyman
09-19-2007, 01:23 PM
css styles are rendered by the last instance of the style. this applies to both inside an individual file and declaration of css

embedded styles will trump linked
inline styles will trump embedded and/or linked

see..

definitions
http://www.dynamicdrive.com/forums/showpost.php?p=109429&postcount=5
scope referencing
http://dividinglimits.com/examples

I wrote a post here on DD explaining them but I cannot find the thread. Basically its just showing you a reference between all the different combinations of linked / embedded / inline styles sheet combo's

Alan Emmins
09-19-2007, 04:43 PM
Yes, that helped. Thanks a lot.