For javascript, I use the jQuery structure, but I can easily integrate any javascript functions into it. I have a problem: I have a div that disappears when I click the link. How can I make it align to the center of the page and stay even while scrolling.
Below is an example of what I have just implemented:
HTML code:
<div id="dividname"> <h2>Heading Goes Here</h2> <p>content goes here</p> <p><a href="#" class="close-box">Close Box</a></p> </div>
CSS code:
#dividname { position:absolute; z-index:100; width:600px; height:600px; display:none; }
JQuery Code:
$(document).ready( function() {
source share