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?
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?