Ik ben bezig mijn eerste webstite met notepad op te zetten. Ik heb met een video tutorial een style sheet gemaakt. Als ik het index.html bestand open in IE wordt deze correct gerenderd.
Probleem:
Als ik het index.html bestand in Firefox open is er geen kleur in de "leftnav" en verschijnt er geen plaatje in de header. De rest is goed.
Waar zit mijn fout?
index.html
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="container">
<div id="header">This is the header</div>
<div id="leftnav">This is the leftnav</div>
<div id="body">This is the body</div>
<div id="footer">This is the footer</div>
</div>
</body>
</html>
style.css
#container {
width: 900px;
}
#header {
width: 880px;
height: 178px;
background-image: url(images/Koptest website photshop FINAL.jpg);
border-bottom: 2px solid #000000;
}
#leftnav {
float: left;
width: 140px;
height: 400px;
background color: #D1C0A7;
border-right: 1px dashed #694717;
}
#body {
width 620px;
}
#footer {
clear: both;
background-color: #D1C0A7;
}
Probleem:
Als ik het index.html bestand in Firefox open is er geen kleur in de "leftnav" en verschijnt er geen plaatje in de header. De rest is goed.
Waar zit mijn fout?
index.html
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="container">
<div id="header">This is the header</div>
<div id="leftnav">This is the leftnav</div>
<div id="body">This is the body</div>
<div id="footer">This is the footer</div>
</div>
</body>
</html>
style.css
#container {
width: 900px;
}
#header {
width: 880px;
height: 178px;
background-image: url(images/Koptest website photshop FINAL.jpg);
border-bottom: 2px solid #000000;
}
#leftnav {
float: left;
width: 140px;
height: 400px;
background color: #D1C0A7;
border-right: 1px dashed #694717;
}
#body {
width 620px;
}
#footer {
clear: both;
background-color: #D1C0A7;
}