/    Sign up×
Community /Pin to ProfileBookmark

image link border

I’m trying to get the link border to not appear on an image link. The image is inside an “<a href” tag and since I have the image set to a 1px border, the blue link color appears as the border. I still want the image border, but not the link border. I’m fairly new to CSS and I can’t figure out how to get it to work. How can I get the link border to go away? Help appreciated. [It’s a test site, so I don’t have the pages on my server.]

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogNov 29.2005 — I believe this should do the trick for you:
<i>
</i>/* apply to link images */
a img {
border-color: black;
}
Copy linkTweet thisAlerts:
@James_Bond_007authorNov 30.2005 — Hey, great. That fixed it. Thanks. ?
×

Success!

Help @James_Bond_007 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

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