Link to home
Start Free TrialLog in
Avatar of Arquiel
Arquiel

asked on

how to get the hover link to work on internet explorer

i am having a problem with the hover link working in internet explorer v7, it works in all other browsers but not in IE7 here is the style sheet
a:hover {
	
	font-style: italic;
	color: #000033;
	text-decoration: underline;
}
 
a:active {
	
	font-style: italic;
	color: #FF9900;
	text-decoration: underline;
}
 
#nav {
	
	padding-top: 100px;
	padding-right: 20px;
	padding-bottom: 400px;
	float: left;
	border-right-style: solid;
	border-right-width: 1px;
	border-right-color: #0000CC;
	margin-top: 40px;
	margin-right: 30px;
}
 
#nav a:link {
	
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 18px;
	font-style: italic;
	color: #000033;
	text-decoration: none;
	padding-top: 5px;
	padding-bottom: 5px;
	margin-right: auto;
}
 
#nav a:visited {
	
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 18px;
	font-style: italic;
	color: #000066;
	text-decoration: none;
	padding-top: 5px;
	padding-bottom: 5px;
}
 
#nav a:hover {
	
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 18px;
	font-style: italic;
	color: #000033;
	background-image: url(http://www.ormach.com/Images/Gradient.jpg);
	background-repeat: repeat-y;
	background-position: left;
	padding-top: 5px;
	padding-bottom: 5px;
	margin-right: auto;
}
 
#nav a:active {
	
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 18px;
	font-style: italic;
	color: #FF9900;
	background-image: url(http://www.ormach.com/Images/Gradient.jpg);
	background-repeat: repeat-y;
	background-position: left;
	padding-top: 5px;
	padding-bottom: 5px;
	margin-right: auto;
}
 
 
 
 
and this is the web page calling it:
 
 
<link href="Styles/0-Global.css" rel="stylesheet" type="text/css">
 
 
<!--[if IE]>
<style type="text/css" media="screen">
#menu ul li {float: left; width: 100%; z-index:100;}
</style>
<![endif]-->
 
<!--[if lt IE 7]>
<style type="text/css" media="screen">
body { behavior:url("csshover.htc"); }
#menu ul li {float: left; width: 100%; z-index:100;}
#menu ul li a {height: 1%;}
#menu a, #menu h2 {
}
</style>
<![endif]-->

Open in new window

Avatar of Roonaan
Roonaan
Flag of Netherlands image

place the a:hover clause after the a:active clause and see if that helps.
Disclaimer:  This is not something I can test, so please consider it a suggestion.

I would add the code snippet below the end of the a:active.  Actually, I might rewrite the CSS to exploit the cascade, but that may make it less acceptable to older browsers.

And I would try getting rid of that csshover.htc thing (copyright 2005) entirely!

HTH, ~Ray
#nav a  {
        
        font-family: Georgia, "Times New Roman", Times, serif;
        font-size: 18px;
        font-style: italic;
        color: #000033;
        text-decoration: none;
        padding-top: 5px;
        padding-bottom: 5px;
        margin-right: auto;
}

Open in new window

Avatar of Arquiel
Arquiel

ASKER

Neither of those suggestions worked either.  If you would like to look at the site and see the problem in IE7,
go to www.ormach.com 

The navbar on the left side is what's causing all the trouble.
ASKER CERTIFIED SOLUTION
Avatar of Arquiel
Arquiel

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial