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]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: