/    Sign up×
Community /Pin to ProfileBookmark

Linked Images in Firefox Showing Underline

My site’s links have the text-decoration property set to “underline”. In Firefox, the linked images are showing an underline, but in IE and other browsers, that underline doesn’t show up.

I’ve seen some other articles and posts (like [url]http://archivist.incutio.com/viewlist/css-discuss/56774)[/url], and the only solution I’ve found that works is “display:block;”. I cannot use that property in my site, as it moves the images from where they are supposed to be. Does anyone know of another way to make this work?

P.S. This is what I currently have my “img” CSS property set to:
img {
border:none;
text-decoration:none;
line-height:0;
}

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@ray326Mar 20.2008 — a img { ... } ?
Copy linkTweet thisAlerts:
@kwilliamsauthorMar 20.2008 — I tried that also, but it had no affect. Any other suggestions would be greatly appreciated?
Copy linkTweet thisAlerts:
@ray326Mar 21.2008 — Ok I got the effect by dropping the image down and giving it a background color that matched the page background.
[code=html]
a img { border:none;text-decoration:none;vertical-align:middle;background:#fff }
<!-- and -->
<p><a href="#">We've got a little text. <img style="text-decoration:none" src="http://www.webdeveloper.com/icom_includes/footers/grcom_foot.gif" alt=""> And a little more text.</a></p>
[/code]
×

Success!

Help @kwilliams spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...