Linking images to webpages in html.....

Discussion in 'Web Design & Coding' started by wufong, Oct 30, 2003.

  1. wufong

    wufong Guest

    How do I make this image link to a website page:

    <HTML>
    <HEAD>
    <STYLE>
    BODY {
    font-family: Arial;
    font-size: 10pt;
    color: 000000;
    margin-left: 100 px;
    margin-top: 100 px;
    background-position: top center;
    background-repeat: no-repeat;
    }
    </STYLE>
    </HEAD>
    <BODY background="fwhite6.jpg">
    </BODY>
    </HTML>

    Any help would be appreciated....I am scratching my head somewhat....:rolleyes:
     
  2. j79zlr

    j79zlr Glaanies script monkey Political User

    Messages:
    2,725
    Location:
    Chicago
    what image?

    btw, you can add that background pic to the style sheet so it doesn't have to be included with the <body> tag,

    background-image : url ('fwhite6.jpg');
     
  3. wufong

    wufong Guest

    I feel I need explain further:

    The html code in question is a background stationary for an e-mail, which is great. Now, I (being full of great ideas) thought that it would be good that if when reading the e-mail, you clicked on the image in question( fwhite6.jpg), it linked straight to the website. Which is a truly great idea - only problem is that I have absolutely not one iota of an idea of how to acheive this.......hence my previous post.......and despite sitting here farting around on my machine, thinking that I MUST be able to overcome such a simple problem, I have reduced myself feeling somewhat of an idiot, feeling (metaphorically) like a monkey f**cking a football.....!:confused: :eek: :)
     
  4. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    <a href="http://something.com">
    <img src="image.png" alt="image" />
    </a>

    would link an image. if you want to link the background image, I dont think that's possible.
     
  5. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    No linking the background image seems perfectly nutty...
     
  6. wufong

    wufong Guest

    Any suggestions......?
     
  7. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Its not possible?
     
  8. punkandacoke

    punkandacoke eat me

    Messages:
    255
    Location:
    at the end of the rainbow
    Try a table.