SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict Racer_X's Avatar
    Join Date
    Dec 2006
    Posts
    212
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Pop-Up Is Showing Image Smaller Than 100%

    My thumbs have a link to show a pop-up of the image at full size--and yet when you click on the pop-up, it's only displaying the image at about 90% or so. Every time I have to click on the magnifying glass to enlarge the image to 100% after the pop-up comes up.

    Can someone tell me why it's doing this and how to fix it?

    Code:
    <a href="Images/Ultralight-Pet-Stairs.jpg" title="SolvIt - UltraLite Pet Stairs" target="_blank" 
      onClick="window.open(this.href,this.target,'width=348, height=278,left=200,top=200,screenX=200,screenY=200');return false">
    
    <div style="float:right; text-align:center; margin-left:20px; margin-right:15px; font-family:Arial; font-size:11px; font-weight:bold"><img src="Images/Ultralight-Pet-Stairs_tn.jpg" alt="SolvIt - UltraLite Pet Stairs" width="125" height="100" longdesc="."><br>
      Zoom Image</div></a>

  2. #2
    &#083;itePoint Aficionado JVLB's Avatar
    Join Date
    Jan 2002
    Location
    N 44 56.537' W 123 3.683'
    Posts
    1,127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Does it make a difference if you define the dimensions in the style?

  3. #3
    SitePoint Addict Racer_X's Avatar
    Join Date
    Dec 2006
    Posts
    212
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by JVLB View Post
    Does it make a difference if you define the dimensions in the style?
    How would I do that? I don't know Javascript so I need someone to show me how to code this.

  4. #4
    &#083;itePoint Aficionado JVLB's Avatar
    Join Date
    Jan 2002
    Location
    N 44 56.537' W 123 3.683'
    Posts
    1,127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In the CSS style, nothing to do with JavaScript. I question whether it will make a difference, but in a style="height:100px;width:125px;" rather than in the image's width and height attributes.


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
  •