mee: div bottem bündig jedoch n Max von oben

Beitrag lesen

Also ich hab da mal n kleinen Test gemacht. Das funktioniert super, ausser eben, dass der Footer beim zuschieben über den Content Layer kommt.

<html>
 <head>
  <title>Dokumenttitel</title>
  <style type="text/css">
   #content {
   position: relative;
   left: 150px;
   width: 200px;
   float: left;
   border: 1px solid #000;
   }

#footer {
   position: absolute;
   margin-top: 20px;
   bottom: 30px;
   width: 100%;
   left: 0px;
   border: 1px solid #000;
            }
  </style>
 </head>
 <body>
  <div id="content">Content<br>
   Dfhh dfhfgh asdasd Dfhh dfhfgh asdasd Dfhh dfhfgh asdasd Dfhh dfhfgh asdasd Dfhh dfhfgh asdasd
   asdasd
  </div>
  <div id="footer">Footer</div>
 </body>
</html>