noob simple html Q
noob simple html Q
Out of context: Reply #6
- Started
- Last post
- 15 Responses
- orrinward0
If you know the height and width of the box:
Give HTML and Body height 100% (with a CSS reset so there's no unnecessary padding).
html, body {
margin:0;
padding:0;
width:100%;
height:100%
}#container{
position:absolute;
top:50%;
left:50%;
margin-left:-(half the width);
margin-top:-(half the height);
}