Eric A. Meyer wrote:
> There is one non-class approach that's fairly cross-browser
> friendly, and that's to use a combination of :first-child and
> adjacent-sibling combinators:
>
> td:first-child + td + td {...styles for third column...}
>
> That works in every current browser. It will fail in IE6, which
> understands neither :first-child nor adjacent-sibling combinators.
Those who wish to cover old browsers may consider using a combined strategy
where you additionally use <col> elements and selectors based on them -
knowing that they should not work but actually work on some browsers. You
can normally use the combined strategy so that you just add the suitable
selectors to a rule like the one above.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
______________________________________________________________________
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/