Rob Emenecker wrote: >> /*div#content:first-child > * { margin-top: 0; } delete >> ruleset*/ >> > > >> /*div#sidebar:first-child > * { margin-top: 0; >> }delete ruleset*/ >> > > >> p {border: 1px solid red;margin: 0 0 15px >> 0;}/*add ruleset*/ >> > > David, > > That works in the one example, but the purpose of me setting these the way I > did was so that ANY element that was the FIRST element in either of those > DIVs would have a margin-top value of 0 pixels. It's a heck of a lot less > coding that doing a universal reset on all possible elements, and then > having to make all vertical margin adjustments using only the bottom one. > > Also, this will be destined for a user-maintainable CMS setup. So while I > could always create a "first-element" class that has a margin-top value of > 0, I have no guarantee that the end-user content editor will remember to > apply that class the first element --OR-- remove it if a previous > first-element now falls lower into the content. > > ...Rob > > >
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? ______________________________________________________________________ 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/