Hi, im trying to set an image of white box horizontaly in the middle of the browser.
As you can see on 1024x768 it's set properly in the middle but when i view it in 1280x1024 the white box has moved up almost to the top.
Please help...thanks.
*screen capture included*
my css :
#content {
background-image: url(content.png);
background-repeat: no-repeat;
position: absolute;
top: 120px;
width: 100%;
height: 320px;
border-top-width: 0.5px;
border-right-width: 0px;
border-bottom-width: 0.5px;
border-left-width: 0px;
border-top-style: dotted;
border-right-style: none;
border-bottom-style: dotted;
border-left-style: none;
border-top-color: #999;
border-right-color: #999;
border-bottom-color: #999;
border-left-color: #999;
background-position: center;
}
As you can see on 1024x768 it's set properly in the middle but when i view it in 1280x1024 the white box has moved up almost to the top.
Please help...thanks.
*screen capture included*
my css :
#content {
background-image: url(content.png);
background-repeat: no-repeat;
position: absolute;
top: 120px;
width: 100%;
height: 320px;
border-top-width: 0.5px;
border-right-width: 0px;
border-bottom-width: 0.5px;
border-left-width: 0px;
border-top-style: dotted;
border-right-style: none;
border-bottom-style: dotted;
border-left-style: none;
border-top-color: #999;
border-right-color: #999;
border-bottom-color: #999;
border-left-color: #999;
background-position: center;
}
Attachments
Last edited: