Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > <input disabled> color

Reply
Thread Tools

<input disabled> color

 
 
Jochen Fuhrmann
Guest
Posts: n/a
 
      01-13-2004
hi, is there a way to change the color settings of a disabled ellement? css?

jochen
 
Reply With Quote
 
 
 
 
Matthias Gutfeldt
Guest
Posts: n/a
 
      01-13-2004
Jochen Fuhrmann wrote:
> hi, is there a way to change the color settings of a disabled ellement? css?


Sure, same as for all other elements.

With a class:
input.disabled {color:blue; background-color:lime;}

<input class="disabled" disabled="disabled">

With an attribute selector:
input[disabled="disabled"] {color:blue; background-color:lime;}

Selectors are explained here: <http://w3c.org/TR/CSS2/selector.html>

Both attribute selectors and styling of form elements in general aren't
supported by all browsers.


Matthias

 
Reply With Quote
 
 
 
 
brucie
Guest
Posts: n/a
 
      01-13-2004
in post <news:bu14vh$c0irg$(E-Mail Removed)-berlin.de>
Matthias Gutfeldt said:

> <input class="disabled" disabled="disabled">


<input class="disabled" disabled>




--
brucie
 
Reply With Quote
 
Cameron
Guest
Posts: n/a
 
      01-13-2004
brucie wrote:

> in post <news:bu14vh$c0irg$(E-Mail Removed)-berlin.de>
> Matthias Gutfeldt said:
>
>
>><input class="disabled" disabled="disabled">

>
>
> <input class="disabled" disabled>
>


Just general info, now in XHTML

<input disabled>

is not valid, it should now be written as...

<input disabled="disabled">



~Cameron
 
Reply With Quote
 
Cameron
Guest
Posts: n/a
 
      01-13-2004
Cameron wrote:

> brucie wrote:
>
>> in post <news:bu14vh$c0irg$(E-Mail Removed)-berlin.de>
>> Matthias Gutfeldt said:
>>
>>
>>> <input class="disabled" disabled="disabled">

>>
>>
>>
>> <input class="disabled" disabled>
>>

>
>
> Just general info, now in XHTML
>
> <input disabled>
>
> is not valid, it should now be written as...
>
> <input disabled="disabled">
>
>
>
> ~Cameron


*Ahem* this will teach me to copy and paste

<input disabled="disabled">

isn't valid in XHTML either

however

<input disabled="disabled" />

is

~Cameron

 
Reply With Quote
 
brucie
Guest
Posts: n/a
 
      01-13-2004
in post <news:bu16d7$njn$(E-Mail Removed)>
Cameron said:

>>><input class="disabled" disabled="disabled">


>> <input class="disabled" disabled>


> Just general info, now in XHTML
> <input disabled>
> is not valid, it should now be written as...
> <input disabled="disabled">


thats not valid either



--
brucie
 
Reply With Quote
 
Cameron
Guest
Posts: n/a
 
      01-13-2004
brucie wrote:

> in post <news:bu16d7$njn$(E-Mail Removed)>
> Cameron said:
>
>
>>>><input class="disabled" disabled="disabled">

>
>
>>><input class="disabled" disabled>

>
>
>>Just general info, now in XHTML
>><input disabled>
>>is not valid, it should now be written as...
>><input disabled="disabled">

>
>
> thats not valid either
>


if you are referring to my missing / at the end see my other post at
16:32, if not, what else did I miss?
 
Reply With Quote
 
Toby A Inkster
Guest
Posts: n/a
 
      01-13-2004
Cameron wrote:

> <input disabled="disabled" />


Or <input disabled="disabled"></input>

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

 
Reply With Quote
 
jayvardhanpatil jayvardhanpatil is offline
Junior Member
Join Date: Apr 2009
Posts: 1
 
      04-19-2009
though I too is struggling with this, there are few things that are possible

check here

codeforfuture.com/2008/12/24/solution-changing-color-of-disabled-checkbox-or-radiobutton
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing font color from current font color to black color Kamaljeet Saini Ruby 0 02-13-2009 04:58 PM
standard way of getting color # string from drawing.color? PJ6 ASP .Net 4 09-15-2005 06:10 PM
Color.white vs. Color.WHITE Niels Dybdahl Java 3 10-06-2004 03:21 PM
how to convert color in style "#e6e6e6" to color object in vb.net moondaddy ASP .Net 3 04-28-2004 04:59 AM
BGR Color to Java Color Andrew Arace Java 7 09-16-2003 05:30 PM



Advertisments