[TYPO3] automatically alternate css classes on table rows in rte

Rob De Vries spam_this at pandora.be
Tue Sep 25 14:49:22 CEST 2007


Lukas Mattsson wrote:
> If I make a table in RTE, is it possible to dynamicly apply alternating 
> colors on odd/even rows? Preferable by using a function that just 
> applies the classes 'odd' and 'even' on the rows. The alternating css 
> classes has to remain if a user insert a row in the middle of a long 
> table, ie no need to change half of the tr classes.
> I know css3 allows us to use tr:nth-child(odd) td, but I don't want to 
> use it yet because of rendering limitations in some web browsers.
> 
> Best regards, Lukas

Hey Lukas,

maybe some js that changes your classes for your table?
jquery is able to do this.

kind regards
Rob



-- 
------------------------------------------------------------
web : http://www.rob-ot.be
skype : rob-ot
------------------------------------------------------------
[O_o] -- Don't feed the rob-ot


More information about the TYPO3-english mailing list