My page uses the .css position:absolute; and percentage height attributes, eg. height 80%; . It looks great when its full screen but it look terrible when its minimized. When its minimized I would like to get a scrollbar. Is there someway to have an element be 80% width of the screen when the screen is maximized, but if the screen is resized, then maintain the initial size and get a scrollbar.
My page uses the .css position:absolute ; and percentage height attributes, eg. height 80%;
Share
Perhaps using the
min-heightattribute will help? This should prevent the 80% height from shrinking indefinitely and allow you to specify anoverflowattribute to get the scrollbars.