homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

Styling Unordered List Syntax Question

10+ Year Member

Msg#: 3879433 posted 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 {


ul#search_results {

Is one more reliable than the other?



WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 3879433 posted 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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved