Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts

    FF Problem - linking WHOLE pic

    Hi,

    I have this code which displays an image:

    PHP Code:
    echo '<a href="index.php?id=home"><img src="' $folder '/' $image '" alt="' .Header'" /></a>'
    I want the image to be linked to the URL in the link above. However, when the page is viewed in FF only the BOTTOM of the image is linked - how come??? It works in IE7.

    http://behrentzs.com/new1/
    Last edited by CaptainB; 04-10-2009 at 04:51 PM.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Try
    Code:
    #date {/*style.css (line 25)*/
    position:absolute;
    right:35px;
    top:0;
    }
    PS:
    Code:
    <div id="date"><img id="date" src="date.php"/></a>
    I'd say that you've some divitis, since the following is enough to work with the above CSS.
    Code:
    <img id="date" src="date.php"/>
    Last edited by abduraooft; 04-10-2009 at 04:56 PM.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    CaptainB (04-10-2009)

  • #3
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts
    Worked - and yes, unnessecary div - it's gone now


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •