HighDots Forums  

css alternate list background problem

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss css alternate list background problem in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
skeeterbug
 
Posts: n/a

Default Re: css alternate list background problem - 12-28-2004 , 04:50 PM






thanks for all the help everyone.

kchayka wrote:
Quote:
Gus Richter wrote:
skeeterbug wrote:

http://www.geocities.com/operationsengineer1/

Actually, this is all that is needed:
#hmenu a.blueback {...

Perhaps someone can explain the /reason/ as to why these don't
work:
a.blueback {...
li a.blueback {...
ul li a.blueback {...

#hmenu has higher specificity than the more generic selectors, so the
existing rule

#hmenu li a {background: url(hmenu.gif) #fff bottom left
repeat-x;...}

takes precedence. As an override, I would suggest
#hmenu li a.blueback {...}

and put it right after the first rule, mostly because it may make it
easier to read/follow, and subsequently easier to maintain.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.