/    Sign up×
Community /Pin to ProfileBookmark

How to link an image but not underline it?

I’m trying to make an image with a caption underneath it both link to another site, but I don’t want the image underlined, only the text. Ideally, I’m looking for a rollover option to change the color of the text in the caption whether you rollover the image or the text, too. Here’s an example of the html, but it’s really one continuous line. Any suggestions?

Thanks-

<li><a href=”http://www.amazon.com/exec/obidos/tg/detail/-/0853459916/104-2095657-7820708?v=glance/”target=”_blank”><img src=”http://www.monthlyreview.org/veinscv2k1.jpg”><br /><img alt=”Eduardo Galeano – Open Veins of Latin America: Five Centuries of the Pillage of a Continent” /a><p><a href=”http://www.amazon.com/exec/obidos/tg/detail/-/0853459916/104-2095657-7820708?v=glance”></a></p></li>

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@Daniel_TOct 26.2005 — &lt;style type="text/css"&gt;
a img { border: 0 }
a:hover { color: red }
&lt;/style&gt;
That goes in the <head>, and will get rid of the border and make the text color red on hover.
×

Success!

Help @lindy500 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.27,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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