In my Div, I have set the width and height of a paragraph along with the property overflow-y:scroll
. It's working fine as the paragraph is displaying with a vertical scroll. However, it is causing displacement in the div below.
Below is the HTML code:
<div id="bodydesc" style="margin-left:auto; margin-right:auto; width:960px; height: 600px;">
<p id="desc" style="float:left; overflow-y:scroll;color:#666666;height:590px; width:700px; font-family:Candara,Trebuchet MS,sans-serif; font-size:12px; font-weight:bold; border-right: thin dotted #666666; line-height:18px;"></p>
</div>
<div id="footer" class="footer-shadow">
<div style="margin-left:auto; margin-right:auto; width:960px;"></div>
</div>
Here is the CSS for the class footer-shadow:
.footer-shadow{
background-image:url('../img/new_images/footer-bg.jpg');
height:170px;
width:100%;
color:gray;
}
The
<div id="footer" class="footer-shadow">
is moving down, displacing from its original position. Please assist me with this issue.