Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1{HTML} Image Link Code Empty {HTML} Image Link Code Tue Feb 01, 2011 2:17 am

des

des
Achiever
Loading
To create a border around your image when linked, use the 'border' attribute, specifying the size of the border. For example, type border="2" in the img tag.
Note that, if you don't provide the 'border' attribute, some browsers will automatically display a border.
Code:
Code:
<a href="http://www.natural-environment.com/blog/2008/11/07/what-is-the-worlds-largest-rabbit/" target="_blank">
<img src="http://www.quackit.com/pix/worlds_largest_rabbit_2.jpg" width="200" height="261" border="2" alt="Photo of a big bunny rabbit!" />
</a>
You'll notice that the linked page opens in a new browser window. This is because I've specified target="_blank" in the code. If you don't want the page to open in a new window, simply remove this piece of code.
Image Link Code: No Border

To remove the border, type border="0" in the img tag.

Code:
Code:
<a href="http://www.natural-environment.com/blog/2008/11/07/what-is-the-worlds-largest-rabbit/" target="_blank">
<img src="http://www.quackit.com/pix/worlds_largest_rabbit_2.jpg" width="200" height="261" border="0" alt="Photo of a big bunny rabbit!" />
</a>
Blah, blah, blah. You Ctrl'd+V, lol you noob. A_________A

2{HTML} Image Link Code Empty Re: {HTML} Image Link Code Sat Dec 17, 2011 8:21 pm

Nick

Nick
Member
Loading
Oh yeah, I've used this code a bunch of times.

View previous topic View next topic Back to top  Message [Page 1 of 1]

Related topics

Permissions in this forum:
You cannot reply to topics in this forum