[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

stylesheet for input:disabled ??

Posted on 2004-11-10
5
Medium Priority
?
948 Views
Last Modified: 2012-05-05
Hi my question is easy !

I have stylesheet for 'input';
<Style>
input{
  font-family:verdana, arial, helvetica, sans-serif;
  font-size:10px;
  border:1px solid #CCCCCC;
  background:#FFFFFF;
 }
<Style>

Now I want have a diffrent stylesheet for an input box that is disabled.
Is this possible? If yes, how? If no, how can I change the colour of a disabled box anyways?
0
Comment
Question by:Octalys
  • 3
  • 2
5 Comments
 
LVL 31

Accepted Solution

by:
seanpowell earned 200 total points
ID: 12545443
Easy answer, too. You can't affect it with CSS.
http://www.experts-exchange.com/Web/Web_Languages/CSS/Q_20952082.html

Sean
0
 

Author Comment

by:Octalys
ID: 12545525
I dont want to use CSS to disable an input box. Your link is irrelevant.
0
 

Author Comment

by:Octalys
ID: 12545560
Well my bad, not entirely irrelevant, now I know its there's no pseudo for input (no input:disabled).
But is it possible to use javascript to change the input:disabled box colour?
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 12545569
Try reading it again.
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 12546202
No, I'm afraid it won't react. You would have to simulate a disabled element, but there's always going to be a concern about functionality.

Generally forms are important, and people need to know how to use them. The diabled input is intuitive, and so it reacts accordingly. Bypassing the GUI with javascript should really only be attempted if you have complete control over what the user is doing and needs to do.

Try posting a Q though in the Javascript TA, to see what they come up with. I'll subscribe to it when I see it.

Sean
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses
Course of the Month19 days, 16 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question