Old 19-02-2008, 19:18   #1 (permalink)
Maciek
I like Iced Tea
 
Maciek's Avatar
 
Join Date: Nov 2007
Location: Kitchener.Ontario.Canada
Posts: 93
Send a message via MSN to Maciek
Rollover in IE =(

HTML Code:
.price { display : block; background: url("../image/price/price.gif") no-repeat; width : 76px; height : 50px; } .price:hover { background-position : -76px 0; }

HTML Code:
<a href="alpha.htm" class="price"></a>

Why does this not work in IE?
It works perfectly in Firefox and safari. I also had a site totally designed for IE and this rollover works there. but not now! please explain! thanks
  Reply With Quote
Old 19-02-2008, 19:22   #2 (permalink)
jamblo
cuttin' and stickin'
 
jamblo's Avatar
 
Join Date: Jan 2008
Location: Bournemouth, currently.
Posts: 148
try making it

HTML Code:
.price, .price a:link, .price a:visited { display : block; background: url("../image/price/price.gif") no-repeat; width : 76px; height : 50px; } .price:hover, .price a:hover { background-position : -76px 0; }

to cover all bases before troubleshooting further.

What is the link attached to? Surely you need something in there? The above code should work if it's text. Perhaps a live link to what you're doing would help us help more...
  Reply With Quote
Old 19-02-2008, 19:32   #3 (permalink)
seen.to
unusual suspect ™
 
seen.to's Avatar
 
Join Date: Jul 2004
Location: DE, USA
Posts: 2,778
Quote:
Originally Posted by jamblo
try making it

HTML Code:
.price, .price a:link, .price a:visited { display : block; background: url("../image/price/price.gif") no-repeat; width : 76px; height : 50px; } .price:hover, .price a:hover { background-position : -76px 0; }

to cover all bases before troubleshooting further.

What is the link attached to? Surely you need something in there? The above code should work if it's text. Perhaps a live link to what you're doing would help us help more...

Since the .price class is attached to the a tag I believe you'd actually want a.price etc as your method would be targeting a as a child of .price
__________________
  Reply With Quote
Old 19-02-2008, 19:41   #4 (permalink)
Maciek
I like Iced Tea
 
Maciek's Avatar
 
Join Date: Nov 2007
Location: Kitchener.Ontario.Canada
Posts: 93
Send a message via MSN to Maciek
ohh ya. I got it to work. I had a blonde moment. I didnt put the stupid image files onto the server
  Reply With Quote
Old 19-02-2008, 19:50   #5 (permalink)
Maciek
I like Iced Tea
 
Maciek's Avatar
 
Join Date: Nov 2007
Location: Kitchener.Ontario.Canada
Posts: 93
Send a message via MSN to Maciek
I also have a question with borders. I have set up so that the borders change color when you scroll over them. Does this work in IE?

HTML Code:
#border { border: 2px solid #cccccc; border-left: 10px solid #cccccc; height: 74px; width: 250px; margin-top: 10px; } #border:hover { border: 2px solid #999999; border-left: 10px solid #999999; }
  Reply With Quote
Old 20-02-2008, 00:08   #6 (permalink)
haku
shiro
 
haku's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,069
I don't know, does it?
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8