How to code a banner?

Discussion in 'HTML & Website Design' started by joey112, Jan 28, 2008.

  1. #1
    Currently i have a banner.

    A plain file. Well its a finished banner.

    But if you click on it, it goes no where.

    So i need to code it, if a visitor clicks on it, it directs them to my site.

    Anyone know how?
     
    joey112, Jan 28, 2008 IP
  2. gemini181

    gemini181 Well-Known Member

    Messages:
    2,883
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    155
    #2
    <a href="www.yoursite.com"><img src="yourbanner.jpg" alt="help" width="468" height="60" /></a>

    ``````````````````

    edit:
    To get rid of the colored border (added by your browser), you need to put this in the <head> <style> section of your file:

    img {
    border: none;
    }
     
    gemini181, Jan 29, 2008 IP
    joey112 likes this.
  3. gemini181

    gemini181 Well-Known Member

    Messages:
    2,883
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    155
    #3
    If forgot to add this part:

    <img src="yourbanner.jpg"...

    would more likely be:

    <img src="images/yourbanner.jpg"...
    ...if you are keeping images in a sub-directory.
     
    gemini181, Jan 29, 2008 IP