Automatisch 100% Höhe bei DIVs?

Status
Nicht offen für weitere Antworten.

josDesign

Erfahrenes Mitglied
Gibt es eine Möglichkeit im Bezug auf die Aufgabe die ich mir gestellt habe in diesem Thread die Haupt-DIV #geruest wenn der Inhalt nicht der anzeigbaren Höhe im Browser entpricht sondern kleiner ist automatisch auf 100% Höhe zu bringen. (Wie ich das auch beim alten Design noch hinbekommen habe?)

Vielen lieben herzlichen Dank,
jos

PS: Die Ausgabeseite wird XHTML trans
 
Ich poste dir mal den Code für solch ein Grundkonzept:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title></title>

<style type="text/css">
<!--
html, body {
height: 100%;
margin: 0;
padding: 0;
}

#content {
position: relative;
min-height: 100%; /* Moderne Browser */
height: auto !important; /* Moderne Browser */
height: 100%; /* IE */
}

#head {
height: 100px;
background: #e3e3e3;
}

.pad {
height: 50px;
}

#foot {
position: relative;
height: 50px;
margin-top: -50px;
background: #e3e3e3;
}
-->
</style>

</head>
<body>

<div id="content">
     <div id="head">head</div>
     <p>content with some dummy text</p>
     <div class="pad"></div>
</div>
<div id="foot">foot</div>

</body>
</html>
 
Status
Nicht offen für weitere Antworten.
Zurück