Follow us on Twitter!
Your life is ending one minute at a time. If you were to die tomorrow, what would you do today?
Thursday, April 24, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 11
Guests Online: 11
Members Online: 0

Registered Members: 82886
Newest Member: The Slummy
Latest Articles
View Thread

HellBound Hackers | Computer General | Webmasters Lounge

Author

border around image


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 03-12-07 23:06
i forgot how to get rid of the border that comes around a image when it is also a link. any help:ninja:

(ive already tried looking for my answer at w3schools.com and other sites but having trouble)
Author

RE: border around image


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 03-12-07 23:14
in which language? show us the code?


Author

RE: border around image


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 03-12-07 23:23
You can add this in style.css:

img
{ border-style: none;
}

Or:

<a href="site.com">
<img src="site.com/image.png" style="border-style: none"/>
</a>
Author

RE: border around image


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 03-12-07 23:24
in php/css

i dont have the code right now because my server down but it bassicly goes like this

<a href="www.sociophyte.com"> <img src="images/logo.jpg"></a>

this works perfectly but since i made the image a link it automatically puts a border around the image and i cant remember the code to take it off.
Author

RE: border around image


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 21-12-07 07:32
well, I would try:
<head>
<style>
a img {
border: 0px;
}
</style>
</head>


Author

RE: border around image


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 21-12-07 10:36
<a href='www.yoursite.com'><img src='bla.jpg' border=0 \></a>


Author

RE: border around image

mikispag
Member



Posts: 43
Location: Italy
Joined: 14.11.06
Rank:
Newbie
Posted on 21-12-07 17:48
I think this is the best solution.
It is W3C compliant (not deprecated) and compact.

Code
<img src="image.jpg" border="0" />




You could also use CSS: it will be convenient if you are including several images and you don't want to repeat the border="0" attribute for every picture.

Code
img {border: 0px;}





www.trovatel.net/img/userbar.gif
Code is written, future is not
http://www.trovatel.net
Author

RE: border around image


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 21-12-07 19:58
mikispag wrote:
I think this is the best solution.
It is W3C compliant (not deprecated) and compact.

Code
<img src="image.jpg" border="0" />




You could also use CSS: it will be convenient if you are including several images and you don't want to repeat the border="0" attribute for every picture.

Code
img {border: 0px;}





That's been posted many many many times already....was that really necessary?.....:p