Click to See Complete Forum and Search --> : Like position:fixed but not quite


dustyseb
03-02-2009, 03:51 AM
Hi,

http://dustybrush.net/onecall/onenumber-priser/

Container - margins:auto
left prisliste sideba
footer

the three divs are floated left. In the right one, #sidebar, I have a shopping cart-like price calculater which I want to keep in viewport when a user scrolls the page.

Position:fixed works only on the viewport and does not relate to the parent, in this case sidebar. I want the calculator to stay within #sidebar at all times.

I could easily position the calculator vertically and use position:fixed but that does not solve horizontal positioning in various resolution, since the container is centered via margins:auto.

Any clues?

MrLeN
03-07-2009, 12:54 PM
Did you work out the problem yet?

Has the web page you linked to changed since you made this post?