Previous Message
Next Message

form field grey out.

Sent by Brian Cummiskey on 7 September 2005 20:08

Dan McCullough wrote:
> Not sure I described that correctly, but I was looking for an idea on
> how to have like a text box with some data in, but make it uneditable
> and look like its greyed out.
<input type="text" readonly="readonly" name="thefield" />

firefox will make this grey by default.

for the others, add a class to the element, and some background coloring.

<input type="text" readonly="readonly" name="thefield" 
class="readonlystyle" />

..readonlystyle { background: #ccc; }

css-discuss [EMAIL-REMOVED]]
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Message thread: