Farbe verändern in einem Formular
Ich habe ein Formular, wo mit Value ein Wert (mit Echo $variable) eingeblendet wird.
Weiß vielleicht jemand, wie ich die FARBE dieses Wertes verndern kann?
Das ist die Zeile:
Patient:<input type="text" size="2" name="patient" maxlenght="2" value="<?php echo $row[patient] ?>"><br>
Ich hab schon alles probiert. Bin ratlos. Die Ausgabe ist und bleibt immer in schwarz.
Antwort schreiben
Antwort 1 von Amateur-Googler vom 09.08.2019, 12:30 Options
CSS:
#patient {color: #ff0000;}
HTML:
<input type="text" size="2" name="patient" maxlenght="2" id="patient">
Würde ich vorschlagen
Antwort 2 von Proggi vom 09.08.2019, 12:38 Options
<style>
.patient {color: #ff0000;}
</style>
</head>
class="patient" müstest du machen...
googler teste doch deinen versuch ob er so funktioniert bevor du postest
Antwort 3 von ClaudiaGauss vom 09.08.2019, 12:41 Options
DANKE für eure Hilfe !!!
Ja,- mit class funktionierts.
Hab ich bisher so noch nie gebraucht.
DANKE!!
Antwort 4 von Amateur-Googler vom 09.08.2019, 12:54 Options
Tut mir Leid, ich bin noch Anfänger...