Solved

change different text color when read only or not editable

Posted on 2006-06-19
4
252 Views
Last Modified: 2006-11-18
Hi,

I have web pages when they are in un-editable or read only mode; the text box, check box/radio box, select box etc... are in default dim color (light grey) and users complaint that they are hard to read.  

How am I going to change the fore-ground color?

Many Thanks,
Diane Ha

0
Comment
Question by:tnova1
  • 2
  • 2
4 Comments
 
LVL 30

Expert Comment

by:GrandSchtroumpf
ID: 16934792
Firefox supports colors on disabled form elements, but IE and Opera don't.
AFAIK, there is no way you can change that.
You can tell the complaining users that they can use firefox.

Example:
<input type="text" disabled style="background: #EEE; color: black;" value="hello">
<input type="button" disabled style="background: #EEE; color: black;" value="hello">
0
 

Author Comment

by:tnova1
ID: 16935247
I cann't force them to use Firefox, these controls was .net web controls, otherwise I can use the readonly mode.

But I change the Background color. It does make them more clear and readable now.
0
 

Author Comment

by:tnova1
ID: 16935346
You can't change the fore-color but you can change the background color for disable controls in IE.
0
 
LVL 30

Accepted Solution

by:
GrandSchtroumpf earned 500 total points
ID: 16935955
> otherwise I can use the readonly mode.
Yes, but that's only for text inputs.

> You can't change the fore-color but you can change the background color for disable controls in IE.
I noticed that while testing.  It's better than nothing i guess.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Unordered lists (HTML ul tags) are very handy to create menus of all types, shapes and sizes.  All it takes is a little knowledge of CSS and the possibilities are endless. First off, you should know the general format for menus created using the …
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…

770 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