marquis Posted February 1, 2007 Share Posted February 1, 2007 in IE the hover stuff i wrote doesnt work in firefox it works fine /**************** Table stuff ****************/#itsthetable { font: 12px Verdana, sans-serif;}a, a:visited { color: white; text-decoration: none; display: block;}caption, th, td { vertical-align: top; text-align: left;}table caption, th, tfoot td { font-weight: normal; color: white;}table caption { background-color: red; padding: 8px;}table { border-spacing: 0; width: 650px; background-color: #333333;}td, th { padding: 8px;}thead th { background-color: white; border-bottom: 1px solid red; color: red;}tfoot th, tfoot td { background-color: white; border-top: 1px solid red; border-bottom: 15px solid red; color: red;}tbody td, tbody th { color: red;}tbody th a { color: white;}tbody tr:hover td, tbody tr:hover td a, tbody tr:hover th a { color: white; background-color: red;} Link to comment Share on other sites More sharing options...
S@m Posted February 1, 2007 Share Posted February 1, 2007 IE doesn't like hover. :)IE7 will let you do that, but 6 wont. You will need to use javascript (or some other nify trick that I don't know about) to accomplish a hover for IE. Link to comment Share on other sites More sharing options...
marquis Posted February 1, 2007 Author Share Posted February 1, 2007 yea i was fearing that Link to comment Share on other sites More sharing options...
henryhenry Posted February 1, 2007 Share Posted February 1, 2007 check out http://www.positioniseverything.net/css-dropdowns.htmlThey have CSS dropdown menus that use :hover and work in ie6 (and I think 5.5). There's a server script which they use. Just download and put on your server. It worked for me although it can make load time a bit longer.Henry Link to comment Share on other sites More sharing options...
miles5150 Posted February 11, 2007 Share Posted February 11, 2007 Hi there,I have a funny feeling that just separating your css selectors will solve your problem. I know that means extra bytes of info in your css file but what you have written above may be to much for earleir IE versions to understand.If you separate the selectors and add attributes and values seperately it may work.Worth a try?Please feel free to correct me anyone.Best wishesJustin Link to comment Share on other sites More sharing options...
miles5150 Posted February 11, 2007 Share Posted February 11, 2007 Actually, you could give the tags you want to affect a class name. Then you could shorten your CSS selectors which may be understood more easily.Instead of "tbody tr:hover td, tbody tr:hover td a, tbody tr:hover th a" you could have ".class tr:hover, .class td:hover, .class a:hover"Does that make sense? Something like that anyway.Best wishesJustin Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now