[Typo3-UG Oesterreich] Hintergrundfarbe einer Tabellenzelle

Bernhard Kraft kraftb at mokka.at
Thu Nov 25 10:58:26 CET 2004


Stefan Pink wrote:

> Hallo Bernhard
> 
> Es ist einfach nur eine simple im HTML-Template vorhandene Tabelle.
> Ich möchte nun z.B. einer Zelle dieser Tabelle eine Farbe per Marker
> zuweisen
> 
> z.B.:
> <table width="100%" border="0" cellspacing="0" cellpadding="0">
>   <tr>
>     <td background="###FARBE1###">&nbsp;</td>
>   </tr>
> </table>
> 
> also:  marks.FARBE1 =

Also entweder versteh ich nicht ganz was du brauchst oder es ist
ganz simpel:
marks.FARBE1 = TEXT
# Blau
marks.FARBE1.value = #0000ff

Aber würd ich nicht mit dem "background" attribut von <td> machen sondern mit
stylehseets. also ca. wie folgt :

<table width="100%" border="0" cellspacing="0" cellpadding="0">
   <tr>
     <td style="background-color: ###FARBE1###;">&nbsp;</td>
   </tr>
</table>

und dann im TS:

marks.FARBE1 = TEXT
# Rot
marks.FARBE1.value = #ff0000


grüsse,
Bernhard
-----------------------------------------
Bernhard Kraft
<kraftb at mokka.at>

MOKKA MEDIENAGENTUR GMBH
Mariahilferstrasse 170
1150 Wien
T: 01 895 33 33 50
M: 0676 560 14 14
F: 01 895 33 33 20
www.mokka.at
-----------------------------------------




More information about the TYPO3-at mailing list