Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

how to get the hover link to work on internet explorer

Posted on 2008-06-19
4
Medium Priority
?
325 Views
Last Modified: 2010-04-09
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

0
Comment
Question by:Arquiel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 49

Expert Comment

by:Roonaan
ID: 21824363
place the a:hover clause after the a:active clause and see if that helps.
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 21827990
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

0
 

Author Comment

by:Arquiel
ID: 21835255
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.
0
 

Accepted Solution

by:
Arquiel earned 0 total points
ID: 21885245
The table with the links was nested inside the #nav div.  When I took it out, all the links worked.  I still don't know how to fix the problem, but at least the links work for now.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question