Forum Moderators: not2easy

Message Too Old, No Replies

Hyperlink style crashing IE6

         

shax71

6:01 pm on Jan 29, 2006 (gmt 0)

10+ Year Member



Hi,

I am trying to set a hyperlink style so that they look like buttons when I add the class to the <a> tag. My code:

a.hyperbutton:link,a.hyperbutton:hover,a.hyperbutton:visited{
background-color: #0088B6;
color: #FFFFFF;
border: 2px #666 outset;
text-decoration: none;
}

HTML:
<a class="hyperbutton" href="#">Foo</a>

Now the code works great in Firefox (Win, OS X) and Opera(Win, OS X), BUT it crashes IE6.

Any ideas on either another IE friendly way of doing this or alternatively how I can hide the style from IE?

Any help would be greatly appreciated.

Thanks,

Scott Watson

DanA

6:27 pm on Jan 29, 2006 (gmt 0)

10+ Year Member



This code doesn't crash IE6 on my system.
to hide the code to IE you can use
html>body a.hyperbutton:link,html>body a.hyperbutton:hover,html>body a.hyperbutton:visited{
background-color: #0088B6;
color: #FFFFFF;
border: 2px #666 outset;
text-decoration: none;
}

shax71

10:02 pm on Jan 29, 2006 (gmt 0)

10+ Year Member



I think I have a javascript issue when the tag is displayed, but the IE hiding will be of use in other areas. Thanks a lot for you help.