You may be able to set the weight of the font higher, but IE may control the disabled styles as part of its OS features.
Main Topics
Browse All TopicsWeb application issue displaying disabled fields in IE 6.
We want fields in which no updating is allowed to be displayed with black text on a grey background.
We are using element.disable because it provides the behavior we want.
IE you cant click into the field, pressing tab skips the disabled field.
Problem comes with displaying the field.
With FireFox we can set the text to black and the background to grey just as we want.
Problem is Internet Explorer displays faded text which is hard to read.
I've provided an example bellow.
<html>
<head>
<title>Read only form test</title>
<style>
.noaccess { background-image:url(/imag
.readonly { background-color:#CCCCCC; color:#000000; }
.readwrite { background-color:#FFFFFF; color:#000000; }
</style>
<script language="javascript">
// The following is actually done with jquery this is just to simulate the same thing
// var ro = jQuery('.readonly');
// ro.attr('disabled','disabl
//
function pageinit(){
var ro = document.getElementById('r
ro.disabled=true;
}
</script>
</head>
<body onLoad="pageinit();">
<form method="post">
readwrite <input type="text" class="readwrite" value="one fish" /><br>
readonly <input id="readonly" type="text" class="readonly" value="two fish" /><br>
</form>
</body>
</html>
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Other option is place a span on a higher z-index over the input box.
Then styling the span.
Might be a bit of a fiddle getting the exact size of the input box.
Not sure if it's worth the hassle.
I only use IE my self for regression testing.
But we still have quite a number of customers who like IE and won't move off.
Business Accounts
Answer for Membership
by: starfailurePosted on 2007-09-06 at 04:28:35ID: 19839116
I don't think it can be done in IE. However, you can use ro.readOnly = true;
Just apply the same styles you already have.