Giovanni Rena: Tabellen auf Fenster anpassen

Beitrag lesen

Ist mir auch grad eingefallen, habs ausprobiert geht nicht! Die mittlere Zeile füllt nicht die volle Größe aus:

#Space1      { background-color:#FFFF00; margin:auto;  width:100%;  height:100px;   }
#Space2      { background-color:#00FFFF; margin:auto;  width:100%;                  }
#Space3      { background-color:#FF00FF; margin:auto;  width:100%;  height:100px;   }

Die 1. + 3. sind okay, aber wenn ich die Höhe weglasse, ist die Mittlere nur ganz klein. Hier noch 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>
<title> </title>
<link rel="stylesheet"  href="style.css" />
</head>
<body>

<div id="Space1"></div>
<div id="Space2"></div>
<div id="Space3"></div>

</body>
</html>