Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   [CSS] Schriftfarbe in Input-Box? (https://www.delphipraxis.net/81574-%5Bcss%5D-schriftfarbe-input-box.html)

Grolle 29. Nov 2006 16:36


[CSS] Schriftfarbe in Input-Box?
 
Hallo,
weiß jemand, wie ich die Schriftfarbe in einer Input-Box (Rahmenfarbe <> Schriftfarbe) definieren kann?
Viele Grüße...

Thorben77 29. Nov 2006 16:43

Re: [CSS] Schriftfarbe in Input-Box?
 
Nich so?
Code:
input {
  color: #Farbwert;
}

Grolle 29. Nov 2006 16:54

Re: [CSS] Schriftfarbe in Input-Box?
 
:pale: ja, der Vorschlag ist nicht schlecht :lol:

DGL-luke 29. Nov 2006 16:57

Re: [CSS] Schriftfarbe in Input-Box?
 
besonders schön:

Code:
input[type="text"] {
  color: #ff0000;
}
wenn ich die syntax vom attribut-selektor noch richtig im kopf hab, veränderst du damit nur edit-felder.

S2B 29. Nov 2006 17:01

Re: [CSS] Schriftfarbe in Input-Box?
 
Zitat:

Zitat von DGL-luke
wenn ich die syntax vom attribut-selektor noch richtig im kopf hab, veränderst du damit nur edit-felder.

... in vielen, aber nicht allen Browsern. :angel2:


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:12 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz