Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2006
    Posts
    44
    Plugin Contributions
    0

    Default CSS question - class defined multiple times in default style sheet

    My customer wants me to increase the font size and change the color of center column category and sub-category names. Should be easy enough to do...
    <!-- BOF: Display grid of available sub-categories, if any -->
    <div class="categoryListBoxContents" style="width:33%;">...
    ...except that I've found .categoryListBoxContents is defined in four separate places in the default stylesheet. My understanding, maybe incorrect, is that that only the last class or id definition will be used.

    I'd be grateful if somebody could share some insight as to the css strategy in this particular case, and my best solution for making the change I mentioned above.

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: CSS question - class defined multiple times in default style sheet

    If the same property is defined more than once for a given selector, the last one will override the rest. You can set different properties for a selector in different declarations, though best practice would be to consolidate whenever practical for simplicity.

 

 

Similar Threads

  1. Is default style sheet read at all while custom style sheet is on?
    By cochlear in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 12 May 2007, 04:14 PM
  2. New future Default Style sheet issue
    By jmauto in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 29 May 2006, 07:22 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR