Results 1 to 3 of 3

Thread: Overwrite menubar style sheet for single page

  1. #1
    Join Date
    Sep 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Overwrite menubar style sheet for single page

    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?

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    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/s...29&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

  3. #3
    Join Date
    Sep 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes, that helped. Thanks a lot.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •