Hi all,
I am trying to use the first-child pseudo-class to set a zero top margin in
several content divs on a page. The page works in IE7, but not FF3 -- kind
of the opposite of what I would expect. In FF3 the sidebar has a single <p>
element in it, and a style of...
div#sidebar:first-child > *
{margin-top: 0;}
But it does not work in FF3. Why? I've tried using specific elements rather
than the universal selector, with no difference. When I look at the code
using Firebug in Firefox it does not even show the pseudo-class on the
sidebar div (however it does show it with the content div).
The XTHML and CSS validate, and I've checked through it for typos and
errors. Can't find a thing. I've also begun to wonder if there is something
overriding the first-child declaration in the cascade.
Link to problem page:
http://new.pasadenabusinessassociation.com
Any suggestions?
Best regards,
Rob
________________________________________
Rob Emenecker @ Hairy Dog Digital
410.694.3575 (arf) || 410.694.3550 (fax)
www.hairydogdigital.com
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/