Jump to content

**SOLVED** picture as link without border


anatak

Recommended Posts

Hello,

Can someone help me how to use a picture as a link without having borders around it ?
here is an example of what I don't want ;)

http://kyushunetwork.com/index.php?page=list_picture

as you can see the pictures have a blue border around them.
How can I eliminate that border ?

thanks
anatak
Link to comment
Share on other sites

Thanks for the help.
I put the border=0 in the css for the pictures and now it works

Daniel0
Can you explain how you have to do it without using border ?
or is alright to use border in a CSS ?

thanks
anatak
Link to comment
Share on other sites

It is ok to use CSS to remove borders, that is actually W3C's recommendation.

Do as wildteen said: [code]a img {
border: none;
}[/code]

Or to make only specific images not have a border: [code].no_border {
border: none;
}[/code]

Then just give the image the class no_border: [code]<img src='some_image.png' alt='bla bla' class='no_border' />[/code]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.