Making image serve as a link

Discussion in 'Mac Basics and Help' started by Aniej, Feb 21, 2007.

  1. Aniej macrumors 68000


    Oct 17, 2006
    I think this is probably pretty basic for experienced web designers, but how would I go about making an image clickable as if it were a text link so that when it is selected it directs the user to the desired location?
  2. dpaanlka macrumors 601


    Nov 16, 2004
    Well, find your <img> code, and before it type <a href="URL you want to go to"> and after it type </a>

    You might also want to put border="0" into the inside of the <img> tag, so it would be:

    <img src="blah.jpg" border="0">
  3. Aniej thread starter macrumors 68000


    Oct 17, 2006
    Opps ok I clearly left an important part out, I don't know anything about programing. So if you have the time and want to explain it to me I would really appreciate it. I am including the image I have and the website link I wanted to link it to.

    This is the link I wanted to use:

    Attached Files:

  4. panoz7 macrumors 6502a


    Nov 21, 2005
    Raleigh, NC
    I assume that you're trying to do this on a webpage with html. It sounds as if you might be a little out of your league trying to hand code it though. Anyway here's the code you need for that image:

    <a href=''><img src='blah.jpg' border='0'></a>

    blah.jpg needs to be the address of your image.

    EDIT: It just occurred to me that you might be trying to create a link on this forum. If that's the case that code won't work... let us know if we misunderstood you.
  5. emw macrumors G4


    Aug 2, 2004
    So you're looking to do this?


    Here's the code for it:


    Note that the html code will be different (see above) but the idea is the same.

Share This Page