|
I'm trying to design a layout in which I'll have a container on either side of the screen which will just be sort of bold and gray. In any case, my percentages will NOT show up. Is there some problem with my CSS? I'm growing quite frustrated and don't know what to do. Here is the CSS I'm using to create a 50% all-black sidebar. I figure if I can make these percentages work then I can figure out everything else.
CSS:
{
margin: 0;
padding: 0;
}
body {
background: #FFFFFF;
text-align: justify;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 12px;
color: #666666;
margin: 0px;
z-index: 0;
width: 100%;
height: 100%;
}
#left {
width: 50%;
height: 50%;
margin: 0 auto;
background: #000000;
z-index: 1;
}
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>TEST</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="test.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="left">
</div>
</body>
</html>
All I get is a blank white screen. I'm using Safari as a browser. What am I doing wrong!?
|