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
https://forums.phpfreaks.com/topic/22355-solved-picture-as-link-without-border/
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
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]

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.