Greetings to all! I am looking to achieve a scrolling effect for a div area as I scroll down the page. To accomplish this, I have utilized the CSS property position:fixed to lock the div area within another div called "page". Below is the corresponding CSS:
.page {
width: 964px;
margin-top:6px;
margin-left: auto;
margin-right: auto;
background-image:url(../images2/images/orta_alan_bg_GOLGE.png);
background-repeat:repeat-y;
}
However, I encountered an issue where zooming out causes the fixed div to move away from the main div area "page". How can I resolve this problem?
Here are the styles for the fixed div elements:
#rocket_left
{
width:127px;
height:148px;
background-image:url(../../images2/images/tapinak_resim.jpg);
top:244px;
left: 5.4%;
position:fixed;
}
#rocket_left_desc
{
background-image:url(../../images2/images/bg_sol_bslk_tpnk.png);
width:130px;
height:335px;
top:385px;
left:70px;
position
}