My html file links to my external style sheet when im working in dreamweaver, but when I preview in browser, no styles. When I view in dreamweaver live mode i see the body background-color and the divs are in place. but no borders. When I preview in firefox, no styles at all. I will provide the code. Thanks, please help.
html code:
css code:
html code:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="/css/main_layout.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Talk Tampa Sports</title>
</head>
<body>
<div id="wrapper">
<div id="header">
</div>
<div id="navbar">
</div>
<div id="leftsidebar">
</div>
<div id="rightsidebar">
</div>
<div id="maincontent">
</div>
<div id="footer">
</div>
</div>
</body>
</html>
Code:
body {
background-color: #060;
}
#wrapper {
width: 960px;
height: inherit;
margin: auto;
background-color: white;
border: solid, 1px, black;
}
#header {
width: 960px;
height: 100px;
border-bottom: solid, 1px, black;
}
#navbar {
height: 10px;
width: 960px;
border-bottom: solid, 1px, black;
}
#maincontent {
width: 608px;
height: 500px;
border-bottom: solid, 1px, black;
border-right: solid, 1px, black;
padding: 2px;
margin-left: 176px;
font: Verdana, Geneva, sans-serif, 1em, black;
}
#leftsidebar {
width: 174px;
height: 500px;
float: left;
border-bottom: solid, 1px, black;
border-right: solid, 1px, black;
padding: 2px;
}
#rightsidebar {
width: 174px;
height: 500px;
float: right;
border-bottom: solid, 1px, black;
padding: 2px;
}
#footer {
width: 960px;
height: 100px;
}
Comment