1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

Web Design Make picture to link

Discussion in 'Web Design' started by kentpil, Aug 6, 2008.

  1. kentpil

    kentpil New Member

    Hi,

    I'd like to make my

    HTML:
    background: url('images/website_title.gif')
    into a clickable link. Is that possible? If so, how?

    Many thanks in advance.

    /kent
     
  2. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    give this a try
    between the anchor tag first insert the link you want to reference, then the image tag, apply any need attributes and you should be good to go.

    Code:
    [B]<[COLOR=#800000][COLOR=#800000]a[/COLOR][/COLOR][/B] href=[B]"my_page.html"><[/B][B][COLOR=#800000][COLOR=#800000]img[/COLOR][/COLOR][/B] src=[B]"images/website_title.gif"[/B] alt=[B]"some info here"></[/B][B][COLOR=#800000][COLOR=#800000]a[/COLOR][/COLOR]>[/B]
    
     
  3. kentpil

    kentpil New Member

    Thanks for your answer (and please apologize my stupid questions)... Where should I insert this piece of code? In the css? Index.htm?
     
  4. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    that bit of code is for your index.htm
     
  5. BurningFire

    BurningFire New Member

    Hi Guys, I'm having almost the same question. I downloaded one of the template. All the pictures on it are being used as bg. I have added the link to them but it still doesn't click.
    Here is a sample:
    <li class="gmen"><a href="men.html">Men</a></li>