Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

Styling Unordered List Syntax Question



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

10+ Year Member

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?


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

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

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.


Featured Threads

Hot Threads This Week

Hot Threads This Month