Click to See Complete Forum and Search --> : [HTML]How do I override the default colour of the disabled property?[Resolved]
FishGuy
Jun 20th, 2005, 08:31 AM
Hi all,
I have a client select box which I want to set as read only, but because I have it set as disabled the font colour is not red like I wanted it seems to go to a default grey. How can I override this for this control only?
ALL
Jun 20th, 2005, 08:59 AM
will this work:
<html>
<head>
</STYLE>
<style type="text/css"><!--
.formButton {
border:3 beveled #0000ff; background-color: #0000ff;
color: #ff0000;
font-size: 10pt;
font-family: verdana;
font-weight: bold
}
--></style>
</head>
<body>
<input class="formButton" type="button" value="Button" name="B3" disabled>
</body>
</html>
ALL
Jun 20th, 2005, 09:36 AM
actually that wont solve your poblem...
after doing some research, i found that it wont work, it will always chane the text color, but you can make a custome button, look at this link:
http://sophie-g.net/jobs/css/e_buttons.htm
PS: i dont believe you can disable buttons in Fire Fox!
FishGuy
Jun 20th, 2005, 09:48 AM
Its a Select Box though that I want to change the font colour on.
ALL
Jun 20th, 2005, 10:22 AM
same thing, you cant do much about it :(
FishGuy
Jun 20th, 2005, 10:34 AM
Thats a shame.
ALL
Jun 20th, 2005, 01:41 PM
if you HAVE to get rid of it, you could play around with java script.
take a look at this link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_fp2003_ta/html/OfficeFrontPageCreateDropDownMenu.asp
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.