| Author |
CSS element that shouldn't move when I scroll the page
|
Grega Leskovšek
Ranch Hand
Joined: Nov 13, 2008
Posts: 42
|
|
I wanted to make an element in CSS that wouldn't move when I scroll the page. Here is my CSS code: #shoppingcart { position: absolute; top: 50px; left: 40px; height: 120px; width: 500px; background: #eee; border: 1px solid #444; } What else must I do that an element will always remain in a certain position - when I scroll the page etc? Thanks in advance, Grega from Peace refuge
|
--Always, Grega from Peace refuge
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
http://www.quirksmode.org/css/position.html Eric
|
 |
 |
|
|
subject: CSS element that shouldn't move when I scroll the page
|
|
|