This one seems simple, but it's leaving me scratching my head, and google is only turning up some convoluted examples.
Basically I have a div
And I want this centered on the page... I can't figure out what to put in the css to do this though.
If I just wrap the div in center HTML tags it does what I want, but I'd rather just do it in the CSS.
Am I just missing something obvious?
Basically I have a div
Code:
#login_box
{
background-color: #778899;
width: 600px;
height: 250px;
border: 2px outset;
padding: 10px;
text-align: center;
font-size: large;
}
And I want this centered on the page... I can't figure out what to put in the css to do this though.
If I just wrap the div in center HTML tags it does what I want, but I'd rather just do it in the CSS.
Am I just missing something obvious?