homepage Welcome to WebmasterWorld Guest from 107.20.129.212
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
Accredited PayPal World Seller

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library : Charter : Moderator: open

CSS Forum

    
Styling Unordered List Syntax Question
matthewamzn




msg:3879435
 5:00 pm on Mar 26, 2009 (gmt 0)

I was having a problem styling a list for firefox 2. I finally solved it by replacing:

#search_results ul {
clear:both;
}

with:

ul#search_results {
clear:both;
}

Is one more reliable than the other?

 

g1smd




msg:3879511
 5:58 pm on Mar 26, 2009 (gmt 0)

They mean different things.

First, is an unordered list inside some parent element, where that parent element has an ID of search_results.

Second, is an unordered list that itself has an ID of search_results, directly attached to it.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved