/ Published in: HTML
IE7 will not show background images on a item that has no text. This is probably true with ie6 as well.
The best trick I've found is to display:inline-block, but you must do this for ie7 only
Expand |
Embed | Plain Text
<!--[if IE 7]><link rel="stylesheet" type="text/css" href="/css/IE7.css" /><![endif]--> .ie7blanklink { display:inline-block; }
Comments
Subscribe to comments
You need to login to post a comment.

Hey there!
Why would you want to make a blank link? Just enter some descriptive text, set the link to display:block, give it the needed width and height and set text-indent to -20000px. You won't see the text anymore and your element will have the right width and height for the link in all browsers. No problems with the box-model in ie6.
Or are you trying to do something different than this?
Regards shape
I'll have to try this.. thanks!
this only works if the display is set to block fyi