[TYPO3] automatically alternate css classes on table rows in rte
Tapio Markula
tapio.markula at xetpoint.fi
Tue Sep 25 15:07:37 CEST 2007
Rob De Vries kirjoitti:
> 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
>
>
>
tinyrte has plugin 'template' - maybe you can add some JavaScript for
editor templates.
More information about the TYPO3-english
mailing list