overflow not visible if position is absolute

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    overflow not visible if position is absolute

    Hi,

    I made a website, and there is a small problem. The wrapper div is positioned absolute in order to keep it at the centre of the page, but with this, the problem is, if the height of the screen is reduced, the upper portion of the page gets cut and can not be reached with scrolling.

    The wrapper div's css is here:
    Code:
    #wrapper {
    	position: absolute;
    	top: 50%;
    	left: 50%;
    	width: 900px;
    	height: 650px;
    	padding-top: 30px;
    	margin: -325px auto auto -450px;
    	background: #333 url(images/bg2.jpg) no-repeat center 80px;
    }
    Is there any solution to this problem?
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #2
    Problem solved. Please ignore.

    Comment

    Working...