CSS: DIV box not aligned top

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

CSS: DIV box not aligned top

Post 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?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

body {
maring: 0;
typo ;)
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

Thanks a bunch, I would say "I feel like a f00l," but that would just be f00lish ;)
Post Reply