View Single Post
08-18-2004, 12:46 AM
#5
flez is offline flez
Status: I love this place
Join date: Jul 2004
Location: Montreal
Expertise:
Software:
 
Posts: 540
iTrader: 0 / 0%
 

flez is on a distinguished road

  Old

Originally Posted by MeltedPixel
I'm trying to center a <DIV> tag for a header I'm making. Here is the code that I have now:

Code:
.header {
	margin: 10px;
	padding: 10px;
	background-color: #FFFFFF;
	width: 500px;
	border: 1px solid #999999;
	left: 50%;
	right: 50%;
}
For some reason it will not lign up in the center of my browser window. It just stays off to the left.
Try just adding position:absolute; to that...