Reputation: 31
Actually I want to scroll a banner when I scroll page in HTML.
And it will scroll in the fix length.
<div class="right-featured-panel2">
<a href="uhaul.com/"; target="_blank"><img src="faq_files/uhaul.jpg" class="banner-div" alt="" width="247px" height="323px"></a>
</div>
<div class="clr"></div>
Upvotes: 0
Views: 1708
Reputation: 21449
It's not a PHP question! It's client-side prerogative to manage that kind of functionality. I'll edit your tags.
But in CSS you can give your element fixed position. It will be positioned relative to your window. Whenever you scroll your window it will scroll too.
#myBanner {
position: fixed;
top: 10px;
left: 10px;
}
Upvotes: 2