how to hyperlink img

Discussion in 'HTML & Website Design' started by xtazi35, Jan 2, 2010.

  1. #1
    Hi,

    My problem is:

    I have a website on WordPress. And i have a huge empty space on the header. I want to utilize the space by putting up an image on the center of the header space and when somebody clicks the image it will take them to another websites landing page. I used <div> tag to put up the picture on the desired position but i don't know how to hyperlink the image.

    Can anybody help please?

    Thank you loads.
     
    xtazi35, Jan 2, 2010 IP
  2. fixie

    fixie Member

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #2
    Just wrap the image with a tags <a href="insert your url here"><img src="your image location" alt="" /></a>
     
    fixie, Jan 2, 2010 IP
  3. xtazi35

    xtazi35 Member

    Messages:
    167
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #3
    that really worked.. Thanks for the help :)
     
    xtazi35, Jan 2, 2010 IP
  4. mrpaisa

    mrpaisa Guest

    Messages:
    741
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    <a href="location"><img src="location.jpg"></a>
     
    mrpaisa, Feb 19, 2010 IP