Page 1 of 1

CSS: DIV box not aligned top

Posted: Mon Oct 06, 2003 7:59 pm
by nigma
For some reason the following CSS will not make the div box with the id of "contentContainer" will not be aligned to the top of the browser.

Code: Select all

body {
	maring: 0;
	padding: 0;
	background-image: url(IMAGE.gif);
	text-align: center;
	border: 2px dashed red;
}

#contentContainer {
	margin: 0;
	padding: 0;
	width: 760px;
	height: 100%;
	border-left: 1px #000 solid;
	border-right: 1px #000 solid;
	background: url(IMAGE.gif) left top repeat-y;
	background-color: #FFF;
}
Anyone help me figure out why?

Posted: Mon Oct 06, 2003 8:50 pm
by volka
body {
maring: 0;
typo ;)

Posted: Mon Oct 06, 2003 9:40 pm
by nigma
Thanks a bunch, I would say "I feel like a f00l," but that would just be f00lish ;)