18.8.2011 8:40, Rick Gordon wrote:

I'm just wondering how I might approach addressing a tag
> that appears just before another tag

In CSS, you cannot, except in the trivial sense that you can manually add class attributes to such tags and then use a class selector.

Even in the CSS 3 Selectors draft there is no selector construct for such purposes.

Using JavaScript you could of course traverse the document tree and e.g. add a suitable class property to elements by such criteria.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
______________________________________________________________________
css-discuss [css-d@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