WordPress.org

Ready to get started?Download WordPress

Forums

CSS Relative Pop up (1 post)

  1. Pete Schuster
    Member
    Posted 6 years ago #

    Hey guys,

    so i've been trying to do eric meyer's pure css pop ups. i had it working alittle bit before but it was in an absolute position. i'd like for it to be in a relative position next to the link no matter where on the page.

    heres the link
    http://philmadelphia.com/?page_id=4

    heres the script... needs some work...
    a: span {
    display: block;
    position: absolute;
    top: 0; left: 13.2em;
    visibility: hidden;
    }

    a:hover a: span {
    visibility: visible;
    }

    a:link a: unvisited a: span {
    display: none;
    }

    a:hover a:span {
    display: block;
    color: #000;
    background-color: #fcc;
    width: 11em;
    padding: 0.5em;
    border: 0.5em #f00 solid;
    position: absolute;
    top: 0;
    left: 13.2em;
    z-index: 10;
    }

Topic Closed

This topic has been closed to new replies.

About this Topic