Futzi: Input Text farbig

Hallo,

kann man in einem mit Text vorbelegten und readonly gesetzten input-Tag die Schrift farbe bestimmen, wenn ja wie?

Bsp.:

<input type="text" name="zahl" size="9" value="ausverkauft" readonly>

"ausverkauft" soll rot erscheinen.

Danke und Gruß

Futzi

  1. Hallo Futzi,

    Deine Antwort:

    <input type="text" name="zahl" size="9" value="ausverkauft" readonly style="color:#ff0000;">

    Das Design von Eingabefeldern wird nämlich auch mit CSS erledigt:
    http://de.selfhtml.org/html/formulare/formatieren.htm#css

    cu

    Marc Reichelt || http://www.marcreichelt.de/

    --
    Linux is like a wigwam - no windows, no gates and an Apache inside!
    SELFCode: ie:{ fl:| br:> va:} ls:< fo:} rl:( n4:( ss:) de:> js:| ch:? sh:| mo:) zu:)
    http://emmanuel.dammerer.at/selfcode.html