Results 1 to 3 of 3

Thread: Problem displaying full-size images...

  1. #1
    Join Date
    Feb 2008
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Problem displaying full-size images...

    Hello

    I've been using the following HTML to display a full-size image by clicking on a thumbnail of the image in a table:

    <td style="width: 131px; text-align: center;"><a
    href="link to original image"><img
    style="border: 0px solid ; width: 128px; height: 98px;"
    alt="alternate text"
    src="link to thumbnail"></a><br>
    </td>

    The problem I have is inconsistent behaviour when clicking the thumbnail. Sometimes I get an image that fills the height of the screen (which is what I want), sometimes I get a very large image, and sometimes I get a very large image which then re-sizes to the one I want. this is as far as I can see unpredictable, it happens in Firefox, Opera and IE7, and with FF/O it happens in Ubuntu Linux and Windows XP.

    Any help would be appreciated.

    TIA

    Andrew

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Sounds like a problem with the images, not the browsers. The ones that work right are a good size, the ones that don't are too big for one browser window. When a browser (all of them as I recall) encounters an image to display that is larger than the view pane it auto-resizes (with aspect ratio) to fit either the height or the width of the browser, or both, and will then change the cursor to a magnifying glass when moused over.

    Scale down the size of the large images to fit browsers without being auto-scaled and the problem should vanish.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Feb 2008
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Many thanks, that makes sense.

    Andrew

Bookmarks

Posting Permissions

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