letting absoltuely positioned area grow
Posted
by
JCHASE11
on Stack Overflow
See other posts from Stack Overflow
or by JCHASE11
Published on 2011-01-07T03:55:31Z
Indexed on
2011/01/07
18:54 UTC
Read the original article
Hit count: 170
Please see this page for reference: test page
I am designing a site that has a sidebar that contains an accordion style vertical nav bar. The sidebar which contains this accordion is absolutely positioned, relative to the container that holds it. I did this so the sidebar would stay sticky to the top, bottom, and side.
When you click the products button, the accordion expands well past the container, overflowing into the footer. If I floated the sidebar to the left, it would grow to accommodate the entire sidebar, but it wouldn't be sticky to the bottom of the container by default.
I need a solution that allows the sidebar to be absolutely positioned, and allow growth if the accordion expands. Any Ideas? Jquery solution perhaps?
© Stack Overflow or respective owner