Results 1 to 7 of 7

Thread: Popup Viewer Area

  1. #1
    Join Date
    Mar 2007
    Posts
    38
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Popup Viewer Area

    Let me explain. On the example given here the only time the image pops up is when the cursor is directly over the image. However when I implemented this on my site if you get the mouse near the bottom, left or right side of the thumbnail it pop's up which is just an annoyance however I would like to fix it... I just noticed it's not centered using FF but that I can deal with.

    Here is My site. The thumbnail I'm referring to is the map on the main page.

    Thank you in advance.
    Last edited by Cball; 04-13-2007 at 04:00 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Get rid of this:

    Code:
    a{display:block;color:#981793;padding:10px}
    Or, make sure it doesn't apply to the link containing the image (from your source, addition red):

    Code:
    <a class="thumbnail" href="#thumb" style="display:inline;padding:0;">
    This will change the layout a little. If you add a <br> after the </a>, that should restore the layout to what you have now.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2007
    Posts
    38
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Thumbs up

    Thank you very much...

    Again it was totally cosmetic but it sure makes it better..

    Thanks again.


    Any chance you would know why @ the resolution I run I only have a right scroll bar on the index page but not on any of the others..?

  4. #4
    Join Date
    Feb 2007
    Posts
    293
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    In your thumbnail span, change the left margin from -100 to -400:


    Code:
    .thumbnail span{position:absolute;background-color:transparent;padding:0px;left:-400px;border:0;visibility:hidden;color:black;text-decoration:none}
    Also, I notice you don't have any body tags, just a close body tag on your pages.

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I think that at a high resolution/wide window, if you mean the vertical scroll bar, you would need to add a negative top coordinate:

    Code:
    .thumbnail span{top:-4000px;position:absolute;background-color:black;padding:0px;left:-100px;border:0px dashed gray;visibility:hidden;color:black;text-decoration:none}
    The left margin (as it is) should only affect the presence or absence of a horizontal scroll bar and only in narrower windows.

    Veronica's right though, your source code is a bit non-standard.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Feb 2007
    Posts
    293
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ooops. I thought the issue was the horizontal scrollbar on the index page. It shows up at 1024x768 pixels. That's what the change in left-margin was supposed to fix.

  7. #7
    Join Date
    Mar 2007
    Posts
    38
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thank you both so much for the help. But Veronica I changed the -100 to -400 and the horizontal bar is still there.. However I can deal with it just was wondering

    Also, I'm really new to coding and this is my first site so I'm not sure what you mean other than put a <body> at the beginning of my html.

    Quote Originally Posted by jscheuer1 View Post
    Veronica's right though, your source code is a bit non-standard.

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
  •