View Single Post
Old 11-09-2008, 06:21 PM   #12 (permalink)
CoryMathews
The Addict
 
CoryMathews's Avatar
 
Join Date: Nov 2007
Location: USA
Posts: 256
Thanks: 7
CoryMathews is on a distinguished road
Default

You really want to avoid the

* { width: 100%; height: 100%; margin: 0px; padding: 0px; }

Thats terrible programming. It says you want to apply that to every single tag on the page. Why would you want every tag to be like that?

The easiest way to do this is simply this

HTML

Quote:
...
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="box">
content here.
</div>
</body>
</html>

CSS

Quote:
#box{ background:#333; margin:15px auto; width:960px; }
CoryMathews is offline  
Reply With Quote