Go Back   SitePoint Forums > Forum Index > Design Your Site > Web Page Design > CSS
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Reply
 
Thread Tools Display Modes
Old Aug 17, 2006, 10:28   #1
kohoutek
Sunshine. Always.
bronze trophy
 
kohoutek's Avatar
 
Join Date: Aug 2004
Location: Hamburg, Germany
Posts: 2,596
Unhappy I need your expertise: CSS image replacement technique crashes IE6 on a:hover

I have tested the site on IE6 on my old Windows computer and it works fine. I've also tested the site on my Mac on all browsers and it works fine. But some people who use IE6 have the browser crash when they hover over links that use images for text.

I have used the simplest method out there. Of course there are better techniques and I'm thinking of replacing the method to provide better images on/off support etc. But here is the code that makes some people's IE6 browser crash (the three bottom image links on the site):

The menu:

Code:
ul#menu {
   	 margin: 8px 0 0 0;
   	 width: 753px;
   	 height: 90px;
   	 float: left;
   	 clear: both;
   }
   
   ul#menu li {
   	 float: left;
   }
   
   ul#menu li a:link, ul#menu li a:visited, ul#menu li a:hover {
   	 text-indent: -99999px;
   	 display: block;
   	 float: left;
   	 height: 90px;
   }
Snippets of the link ids
Code:
#blog li#jour a {
   background: url(../images/blog_jour.gif) no-repeat; width: 241px; 
   }
   
   
   
   #blog li#news a {
   background: url(../images/blog_news.gif) no-repeat; width: 260px; 
   }
   
   
   
   #blog li#kontakt a {
   background: url(../images/blog_kontakt.gif) no-repeat; width: 252px; 
   }
snippets of the link hover ids

Code:
  #blog li#jour a:hover, 
  #blog li#news a:hover, 
  #blog li#kontakt a:hover {
   background-position: 0 -90px; display: block; 
  }
The problem child website

Thank you in advance for any advice you have.

Maleika
kohoutek is offline   Reply With Quote
Old Aug 17, 2006, 17:00   #2
keano
SitePoint Zealot
 
Join Date: Jun 2006
Posts: 137
why use image replacement if it was never used when we did regular html table designed sites? where table html sites safe from reason why you must use IR technique? just trying to understand
keano is offline   Reply With Quote
Old Aug 17, 2006, 17:04   #3
kohoutek
Sunshine. Always.
bronze trophy
 
kohoutek's Avatar
 
Join Date: Aug 2004
Location: Hamburg, Germany
Posts: 2,596
Quote:
Originally Posted by keano
why use image replacement if it was never used when we did regular html table designed sites? where table html sites safe from reason why you must use IR technique? just trying to understand
Not sure what tables have to do with my issue? I'm confused ...
kohoutek is offline   Reply With Quote
Old Aug 18, 2006, 01:37   #4
Tyssen
SitePoint Wizard
bronze trophy
 
Tyssen's Avatar
 
Join Date: Oct 2005
Location: Brisbane, QLD
Posts: 4,024
Quote:
Originally Posted by keano
why use image replacement if it was never used when we did regular html table designed sites? where table html sites safe from reason why you must use IR technique? just trying to understand
Because when tables were the only layout method, people didn't much care whether the text supplied in an image was actually present in the HTML or not. These days, people do - it's better for search engines and for people who browse with images off or use screen readers.
The only thing I can suggest is maybe your negative indent is too much. I've generally only seen it set as large as -9999px.
Tyssen is offline   Reply With Quote
Old Aug 18, 2006, 11:54   #5
kohoutek
Sunshine. Always.
bronze trophy
 
kohoutek's Avatar
 
Join Date: Aug 2004
Location: Hamburg, Germany
Posts: 2,596
Thank you Tyssen. I will try that out.
kohoutek is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
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
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 14:40.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved