Welcome Guest Search | Active Topics | Sign In | Register

EO.pdf: wrong color on disabled input elements Options
MicroTech
Posted: Wednesday, October 17, 2012 8:30:05 AM
Rank: Newbie
Groups: Member

Joined: 9/16/2010
Posts: 9
Hi

When I convert a html page, with disabled input elements, EO.pdf has an error regarding the font color.

Using the example example below, the font color in the disabled input is grey (not fully black) in the pdf-document.

If I specify the color as #000000, it converts to the wrong color


Quote:
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">

input
{
background-color: White;
color: Black;
}

input:disabled
{
background-color: White;
color:Black;
}


</style>
</head>
<body>
<input type="text" value="not disabled" />
<br />
<br />
<input type="text" disabled value="disabled" />

</body>
</html>


Best regards

Ole
eo_support
Posted: Wednesday, October 17, 2012 11:12:48 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

How to handle color for disabled elements is still disputable. Currently different browsers handle it differently. For example, while FireFox would render the above code as black, IE (both IE 8 and IE 9) will still render it as gray. The reason for IE's behavior is that a disabled element should have some visual "cue" to indicate that its disabled, this makes the page is more user friendly. We do not use IE for rendering but our position on this is similar to IE. So you may want to avoid using such CSS in your HTML.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.