Hey I have a div on the left of the screen to invite your friends. I am having trouble find a simple script where when I click on the div, the link works but then the div moves offscreen.

http://alturl.com/4iai

Here's the div:

<div class="inviteTab">
<a href="importer/index.php" rel="gb_page_center[750, 500]" title="Your Site.com" >
<img src="importer/images/invite.png" alt="" /></a>
</div>

and the CSS:

.inviteTab{
        background:transparent;
        width:63px;
        height:153px;
        float:left;
        position:relative;
        top:200px;
        left:-25px;    
}


.inviteTab a:hover{        
        width:63px;
        height:153px;
        float:left;
        position:relative;
        left:10px;    
}

May because of position: relative as the modal background is pushing it offscreen. Try making it absolute.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.