...

View Full Version : Resolved div id doesn't work



masterofollies
02-22-2009, 09:17 PM
I don't understand why none of my DIV's will work?

http://www.rodgame.org/projects/xedia/index.html

Index.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" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>Xedia</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link rel="stylesheet" type="text/css" href="x.css" />
</head>
<body>
<div id="header">..</div>

<div id="leftnav">aaa
<div id="content">bbbb

</div></div>

<div id="footer">ccc</div>

</body></html>

x.css

header {
width: 100%;
height: 100px;
background-color: yellow;
}

leftnav {
height: 500px
width: 150px;
background-color: black;
}

content {
width: 100%
height: 100%
background-color: tan;
}

footer {
height: 30px;
width: 100%;
background-color: blue;
}

gun5
02-22-2009, 09:39 PM
You forgot to assign the selector:
#leftnav{

http://www.w3schools.com/css/css_syntax.asp

masterofollies
02-22-2009, 09:58 PM
Bingo, got it, thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum