#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    1
    Rep Power
    0

    Make a picture link?


    Hi.
    I need help to make a picture a link.
    Like you click the image and it links you to some different page.

    I would please like the code for this

    I have tried before with other codes, and none worked, and I fear I maybe put the code in the wrong place,
    so can you please tell me were to put the code too?
    (On a forumotion website)
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    2
    Rep Power
    0
    I'm pretty sure that you just wrap it an an <a>tag

    i.e.
    Code:
    <a href="website.html"><img src="picture.jpg" width="whatever" height="whatever" alt="" /></a>

    Comments on this post

    • benno32 agrees
  4. #3
  5. For POny!
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Location
    Amsterdam
    Posts
    416
    Rep Power
    115
    in addition to lysergic
    you want to change the default style for the link

    Code:
    a.imagelink{text-decoration:none}

    Comments on this post

    • BarryG agrees : Yep! Saves the blue line around your image.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2012
    Posts
    19
    Rep Power
    0

    Smile


    Try below tag to make an image into a link.

    Code:
    <a href="your_url_goes_here"><img src="your_picture.png" alt="short description of image" /></a>
    Customize above tags as you wants to be it.
    Last edited by Kravvitz; February 28th, 2013 at 03:46 AM. Reason: added alt attribute

IMN logo majestic logo threadwatch logo seochat tools logo