Jump to content

How to hyperlink these individual images


myfish

Recommended Posts

hello i have 3 images all of which must lik to each other, i have used the following code

 

<div style="float: left;"><IMG HEIGHT="90" WIDTH="320" IMG SRC="b1.jpg" style="float: centre;"><IMG HEIGHT="90" WIDTH="401" IMG SRC="b2.jpg "style="float: centre;"><IMG HEIGHT="90" WIDTH="320" IMG SRC="b3.jpg "></div>

 

 

they all allign next to each other perfect, but how can i hyper link each?

 

many thanks for your help in advance.

so in theory would it be like this.

 

<div style="float: left;"><a href='test.php'><a/><IMG HEIGHT="90" WIDTH="320" IMG SRC="b1.jpg" style="float: center;"><a href='test.php'><a/><IMG HEIGHT="90" WIDTH="401" IMG SRC="b2.jpg "style="float: right;"><a href='test.php'><a/><IMG HEIGHT="90" WIDTH="320" IMG SRC="b3.jpg "></div>

 

thank you for the correction in my spelling stupid me.

i understand that the "test.php" would be the page i would like them to aim to

 

Many thanks for your help

 

no you want to wrap the image tags inside of the anchor tags.... like this..

 

<div style="float: left;"><a href='test.php'><IMG HEIGHT="90" WIDTH="320" IMG SRC="b1.jpg" style="float: center;"/></a><a href='test.php'><IMG HEIGHT="90" WIDTH="401" IMG SRC="b2.jpg "style="float: right;"/></a><a href='test.php'><IMG HEIGHT="90" WIDTH="320" IMG SRC="b3.jpg "/></a></div>

 

Note: in my first post I miswrote the closing anchor tag...should be </a> not <a/>

Ah that's great thank you :) having now hyperlinked the images i now have a purple box around the image, would you know if there is away not to have this purple border as such?

 

thank you for your help that was great, im new to all of this and am trying my best to learn but i have to admit im not finding it easy

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.