Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 08-23-2009, 02:37 PM IE 7 and 8 hover
GeekSpecialties's Avatar
Super Talker

Posts: 132
Name: Leonard
Location: Minnesota, USA
Trades: 0
My button is not displaying the hover state image in IE7 and IE8. (haven't tested in 6)

Here is the site http://www.remodelcrazy.com/forum/ , blog button in header.

html:
HTML Code:
<td align="left" class="blog-button-td">
<div id="blog-button-div">
<a id="blog-button" href="http://www.remodelcrazy.com/" title="Remodel Crazy Blog - Construction industry articles" <span class="blog-button-text">Remodel Crazy Blog</span></a>
</div>
</td>
CSS:
Code:
td.blog-button-td {width:172px; vertical-align: top;}

div#blog-button-div {width:172px;height:55px; }

div#blog-button-div a#blog-button {display:block;
width:172px;
height:55px;
background: transparent url(images/blog-button.png ); 
padding-top:0px;
margin-top:-1px;
margin-left:24px; }

div#blog-button-div a#blog-button:hover {
background: url(images/blog-button.png )172px 0px; }

span.blog-button-text {margin-left:-999px; }
GeekSpecialties is offline
Reply With Quote
View Public Profile Visit GeekSpecialties's homepage!
 
 
Register now for full access!
Old 08-23-2009, 11:54 PM Re: IE 7 and 8 hover
racer x's Avatar
Ultra Talker

Posts: 457
Name: Randy
Location: Northern Wisconsin
Trades: 0
Try:
div#blog-button-div a#blog-button:link,
div#blog-button-div a#blog-button:visited {display:block;.....

I have had problems not following the LoVe HAte method. (Link,Visited, Hover,Active)

I think it is a good rule to use these, you rarely are aware when you will inherit something from another link.

BTW- The hover state will most likely not work in ie6 depending on what png fix you are using. Many will not work for the png background image "positioned" sprite technique.
racer x is offline
Reply With Quote
View Public Profile Visit racer x's homepage!
 
Old 08-24-2009, 12:39 AM Re: IE 7 and 8 hover
GeekSpecialties's Avatar
Super Talker

Posts: 132
Name: Leonard
Location: Minnesota, USA
Trades: 0
Thanks for that. Too much jumping around in projects, I should have had that in there anyway. That didn't fix it but, thanks anyway.

I figured it out after finding this handy tool (although too slow on my older PC, fine on my new one)
Firebug for IE - http://getfirebug.com/lite.html

Appearently IE needs the background position declared seperatley.
This works in IE
Code:
div#blog-button-div a:hover, div#blog-button-div a:active {
display:block;
height:54px;
background: url(images/blog-button.png );
background-position: 172px -1px ;
}
This does not work in IE
Code:
div#blog-button-div a:hover, div#blog-button-div a:active {
display:block;
height:54px;
background: url(images/blog-button.png )172px -1px ;
}
GeekSpecialties is offline
Reply With Quote
View Public Profile Visit GeekSpecialties's homepage!
 
Old 08-24-2009, 10:19 AM Re: IE 7 and 8 hover
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Just a side-note: you don't need Firebug Lite any more, if you have IE8 installed. Just press "F12". IE8 comes with its own debugging tool now, that is much more powerful than Firebug Lite.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 08-24-2009, 10:25 AM Re: IE 7 and 8 hover
GeekSpecialties's Avatar
Super Talker

Posts: 132
Name: Leonard
Location: Minnesota, USA
Trades: 0
Quote:
Originally Posted by wayfarer07 View Post
Just a side-note: you don't need Firebug Lite any more, if you have IE8 installed. Just press "F12". IE8 comes with its own debugging tool now, that is much more powerful than Firebug Lite.
Thanks for that. I saw that once, but have forgotten about it. I don't have 8 installed on my main computer.
GeekSpecialties is offline
Reply With Quote
View Public Profile Visit GeekSpecialties's homepage!
 
Old 08-24-2009, 11:18 AM Re: IE 7 and 8 hover
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Personally, I don't have IE7 installed on any of my computers anymore, since IE8 does such an excellent job of emulating it when needed. The debugging tool allows you to instantly switch to IE7 mode if needed.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to IE 7 and 8 hover
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30674 seconds with 12 queries