Solved

change different text color when read only or not editable

Posted on 2006-06-19
4
259 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…
Suggested Courses

627 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