WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   CSS Formartierung mit Textfeld->disabled (http://www.wcm.at/forum/showthread.php?t=135843)

keksi77 02.06.2004 14:41

CSS Formartierung mit Textfeld->disabled
 
Hallo,

Wenn ich in einem HTML Dokument mit ein Textfeld via Java disable, wie kann ich über ein CSS dieses so formatieren das es aussieht wie normal (also nicht grau hinterlegt).
Mein CSS für das Input sieht wie folgt aus:

input {
font: normal 100% Verdana, Helvetica, Arial, sans-serif;
border: 1px solid #364970;
color: Black;
background-color: white;
vertical-align: middle;
margin-bottom: 1px;
padding: 0.1em;
}

Habe schon probiert das zu kopieren und "input:disabled" und so weiter zu probieren, leider funktioniert das nicht.

Wie heist der Tag richtig?

Danke
Horst

heli2sky 02.06.2004 18:07

Ich verstehe dein Problem nicht!?

Erstens hast du das - wenn überhaupt - nicht mit Java, sondern JavaScript gemacht, und zweitens: wozu?

input {
background-color: red;
}

<input type="text" />
<input type="text" disabled />

...schaut bei mir gleich aus!

käptn 02.06.2004 18:30

:rolleyes:

is' ja auch ein textfield on kein input element...

~

heli2sky 02.06.2004 19:28

Oh, sorry, diese etwas eigenwillige Grammatik hat mich leider etwas in die Irre geführt...
Zitat:

Wenn ich in einem HTML Dokument mit ein Textfeld via Java disable

jak 02.06.2004 19:41

Geht es um ein <textarea>???
Hast du schon mal probiert statt "disabled" "readonly" zu verwenden?

Jak


Alle Zeitangaben in WEZ +2. Es ist jetzt 11:18 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag