How To Display Disabled Anchor tag as Gray In IE11 | URDINESH

Software Programming, Tutorials, Interview Preparations,Stock Market,BSE/NSE, General informations

Thursday, July 16, 2015

How To Display Disabled Anchor tag as Gray In IE11

Hi All,

Many of us struggled when seeing their disabled anchor tag is display like active in IE11 but its grayed out in IE8,

Compared to IE8 , IE11 dealing very direct with styles of displaying the controls,

So to display a disabled anchor tag as gray you just need to to remove the color attribute that you have given for the anchor tag declaration,

<head>
    <title> Page</title>
</head>
<body>
<a href="http://www.urdinesh.blogspot.com" style="color:Blue" >click Me</a>
</body>
</html>


***Remove the highlighted style

Because in IE11 default all anchor tags are displayed as blue in color. By default when it is disabled
its automatically grayed out.\

You also make sure that in our application any part of the css file should not have following styles which may alter the color of the anchor tag,

a:hover {color:#FFFFFF;}

Thanks 

No comments:

Post a Comment

Thanks for your valuable comments

Followers