This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > December 2003 > Is Possible to alter the "disabled" style?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Is Possible to alter the "disabled" style?
Kruse

2003-12-19, 9:45 pm

Hi,

Is Possible to alter the "disabled" style?

I have got

<input name="test" value="1" disabled>

This makes the input field gray and shadow.

Is it possible to alter the style so that I can define how the disabled is shown?

Morten
David Dorward

2003-12-19, 9:45 pm

Kruse wrote:
quote:

> <input name="test" value="1" disabled>


quote:

> Is it possible to alter the style so that I can define how the disabled is
> shown?



Theory:

input[disabled] { }

Practise:
Won't work in MSIE (boo hiss evil Microsoft).
Untested in other browsers (most support attribute selectors, I don't know
about styling of disabled form elements).

--
David Dorward <http://dorward.me.uk/>
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews