Witam wszystkich.
Chce podzielić stronke na kilka bloków, ale to co stworzełem wyświetla się tylko w lewym górnym rogu, a nie na całej stronie.Jak to poprawić?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//PL">
<html lang="pl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-2">
<title>Twój tytuł strony</title>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div id="top">
<div id="NAGLOWEK">Nagłówek </div>
<div id="MENU">Menu </div>
<div id="TRESC">Tekst</div>
<div id="STOPKA">Stopka </div>
</div>
</body>
</html>
CSS
html, body {
background-color: #fff;
color: #000;
margin: 0;
padding: 0;
}
#top {
width: 780px;
}
#NAGLOWEK {
background-color: #888;
}
#MENU {
width: 150px;
float: left;
overflow: hidden;
background-color: #ccc;
}
#TEKST {
width: 630px;
float: left;
overflow: hidden;
background-color: #fff;
}
#STOPKA {
clear: both;
width: 100%;
background-color: #888;
}