Jump to content

CSS/Style issue when modifying the example code


andrey1234

Recommended Posts

Im havign issues with CSS/ Style I used this structure for my page: http://www.w3schools.com/dhtml/tryit.asp?f...trydhtml_menu10Here is my modified styles section:

<style>body{font-family:arial;}table{font-size:80%;background:black}a{color:black;text-decoration:none;font:bold}td.menu{background:lightblue}td.menu:hover{background:green}//trouble linetable.menu{font-size:100%;position:absolute;visibility:hidden;}</style>

The indicated lien will not work in IE6, it does in opera.What am I missing?Thanks

Link to comment
Share on other sites

You are missing that the :hover pseudo class only works with links in IE6. It should work everywhere as with Opera, but IE6 just doesn't support this as it should.

Link to comment
Share on other sites

I kept getting an access denied error when trying to use it. :)EDIT - It's ok it works now. :)

Edited by scott100
Link to comment
Share on other sites

Got it to work using RahXephon this is my body tag
	body{  font-family:arial;  behavior:url("hover.htc");  }

you can get the .htc off the link he provided.

Cool. I'm glad you got it working. Sorry I wasn't here to guide you... I liked this script so much cause you can use the CSS atrributes instead of those annoying mouseover and mouseout scripts. :)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...