tags:

views:

53

answers:

3
#parent div { float:right; }
#parent > div { float:right; }

Most importantly:firefox and IE

+3  A: 

No. Some browsers don't support CSS at all (lynx for example).

The glib answer aside, among browsers you probably care about, the child selector is not supported in Internet Explorer 6.

David Dorward
also the browsers that came out before CSS selectors were spec'd.
Anurag
What about the first one?Is it supported by IE6?
Yes, IE6 supports descendant selectors.
David Dorward
+1  A: 

See this chart:

#parent > div is supported by ALL browsers EXCEPT IE6.

Nimbuz
… all browsers on that chart …
David Dorward
We do not like to mention Netscape 4. Let us pretend it never existed.
bobince
A: 

See Quir}{smode's master compatibility table for answers to all these types of questions.

Click here for the CSS Compatibility table

cap3t0wn