treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[Solved] Linking An Image To Open In New Window

  • Hey everyone,

    I am looking to link an image in my footer so that it opens up in a new window to another website. Any help would be great! Not sure what code to use and where to put it.
    Thanks

    Here is the code I am using:

    <img style="position:absolute; top:100px; right:50px; width:100px; height:74px" SRC="/storage/Petrowest-FortMac.png?__SQUARESPACE_CACHEVERSION=1322716491051">


    my website is www.quigleycontracting.squarespace.com
  • This will open a new tab instead of a whole new window.
    <img style="position:absolute; top:100px; right:50px; width:100px; height:74px" src="/storage/Petrowest-FortMac.png?__SQUARESPACE_CACHEVERSION=1322716491051" target="_blank">
  • Thanks for your response.

    I put in your code and it did not seem to work. Any other suggestions?

    http://quigleycontracting.squarespace.com
  • That's because I'm a dork and put it somewhere I shouldn't have.
    <a href="http://quigleycontracting.squarespace.com&quot; target="_blank"><img style="position:absolute; top:100px; right:50px; width:100px; height:74px" src="/storage/Petrowest-FortMac.png?__SQUARESPACE_CACHEVERSION=1322716491051"></a>
  • Awesome that works now, Thanks so much!