Results 1 to 9 of 9

Thread: CSS Popup problem

  1. #1
    Join Date
    Jan 2006
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default CSS Popup problem

    Well I have this stylesheet but I want the images to pop up above the link (xy coordinates???) wherever it is located... Is this possible? Thank you in advance, Mike. The problem is visible in Opera but IE and FF work just fine...

    css:

    a span {display: none;}

    a:hover span {display: block;
    position: absolute; top: auto;
    z-index: 100;}

    link:

    <a href="#">Card<span><img src="images/cards/firstcard.jpg" /></span></a>
    Last edited by feeleash; 10-01-2007 at 11:28 AM.

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

  3. #3
    Join Date
    Jan 2006
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I've tried it already and it definitely works in IE and FF but not in Opera. The image is shown sliced...

  4. #4
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    can you link to your site so we can better troubleshoot for you?

    also see http://www.dynamicdrive.com/forums/s...ad.php?t=24866

    I tested the css page in Opera 9 and there is a bug but it doesnt have to do with a sliced image.

  5. #5
    Join Date
    Jan 2006
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    www.eragra.gr news button/ then under time machine click more link

    it doesn't work in FF either... Now the images are appearing but I want them to be over the link rather than on the left side of the screen...

  6. #6
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    try
    Code:
    a:hover span {
         position: relative;
         top: 1em;
         left: 2em;
    }
    and play around with the top / left distance

  7. #7
    Join Date
    Jan 2006
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Maybe there is a way to add coordinates to every pic separately in the img tag?? The thing is that every pic has a different coordinate so the top left attributes won't help (all the pics will be displayed with the same coordinates)

  8. #8
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    that is what the position relative is for.

    it creates the image relative to where it is at this moment.

  9. #9
    Join Date
    Jan 2006
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    But when I place relative the image pops inside the text misplacing the entire page...

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
  •