[thelist] VERY basic CSS question

Maximillian Schwanekamp anaxamaxan at neptunewebworks.com
Tue May 18 12:20:30 CDT 2004


Added some comments in your stylesheet.  HTH.

<style type="text/css">
body {
	background: #fff url(back.jpg) top repeat-x;
	/* setting width on body is going to make container always be left-aligned
	   when the viewport is >760px wide. */
	/* width: 760px; */
	/* px unit not necessary for 0 value */
	margin: 0;
	padding: 0;
	}
div.container {
	/* set background-position to top and center */
	background: #fff url(mainback.jpg) top center no-repeat ; 
	/* since div is not full page width, 
	   prob should center it too per W3C method */
	margin: 0 auto;
	padding: 55px;
	width: 760px;
	height: 470px;
	/* align: is not valid.  Use text-align: instead. */
	text-align: center; 
	}
</style>

Maximillian Von Schwanekamp
Dynamic Websites and E-Commerce
www.NeptuneWebworks.com
voice: 541-302-1438
fax: 208-730-6504





More information about the thelist mailing list