Hey,
For javascript I use the jQuery framework but can easily integrate any javascript functions into it. The problem I have is I have a div that fade's in when I click a link. How can I get it to align in the center of the page and stay even when scrolling.
Below is an example of what I currently have 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() {
// on click show div
$('a.popup').click(
function() {
$('#dividname').fadeIn('slow');
}
}
}
);