/    Sign up×
Community /Pin to ProfileBookmark

image as a link with no border

Hi guys

example

<a href> image </a>

and have the image with [B]no border[/B]?? i do not want the blue/purple default border.

i tried giveing it a class with no border etc but could not get working

is this possible and how?

thanx!

to post a comment
CSS

8 Comments(s)

Copy linkTweet thisAlerts:
@JPnycMay 09.2005 — border="0" in the tag
Copy linkTweet thisAlerts:
@Css_CalavauthorMay 09.2005 — thanx man!
Copy linkTweet thisAlerts:
@BonRougeMay 10.2005 — Better : [CODE]a img {
border:0;
}[/CODE]
Copy linkTweet thisAlerts:
@Css_CalavauthorMay 10.2005 — thanx BonRouge,

will try that out too.

what would the class be in my xhtml?

<a href ..... class="img"> ???

something like that?? sorry little rusty
Copy linkTweet thisAlerts:
@BonRougeMay 10.2005 — No. That's all. 'img' is the selector for images. We use 'p' for paragraphs, 'div' for divisions and 'img' for images.
Copy linkTweet thisAlerts:
@Css_CalavauthorMay 11.2005 — ok i see,

yeah i knew:

'img' is the selector for images. We use 'p' for paragraphs, 'div' for divisions and 'img' for images[/QUOTE]

alreay.

ok, so.. this bit of code will give all images in a a href tag no borders?

is that correct?

a img {

border:0;

}


Cheers!
Copy linkTweet thisAlerts:
@BonRougeMay 11.2005 — ?
Copy linkTweet thisAlerts:
@Css_CalavauthorMay 11.2005 — cool thanx for that ?
×

Success!

Help @Css_Calav 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.13,
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,
)...