Jump to content

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

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.