> You are way over my head, Rob. But given what you state is a 
> given case, then the solution may well lie within a problem 
> solving language-- programming?

Hi David,

Actually, if you see my other reply (to Tim Snadden). The way I had
structured the selector was incorrect. 

The selector of...

        div#sidebar:first-child > * {margin-top: 0;}

...would NEVER work, because it is seleting the div#sidebar that is the
first-child of it's parent element. What I needed was...

        div#sidebar > *:first-child {margin-top: 0;}

...for it to work.

I had misread an explanation of the implementation on one of the popular CSS
sites (can't remember which one now). When I saw Tim's message and then
looked at the specification
(http://www.w3.org/TR/CSS2/selector.html#first-child), I realized my error.

Thanks!

...Rob

____________________________________
Rob Emenecker @ Hairy Dog Digital
www.hairydogdigital.com
 
Please note: Return e-mail messages are only accepted from discussion groups
that this e-mail address subscribes to. All other messages are automatically
deleted.

______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
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/

Reply via email to