flexbox-beispiel-mit-footer-immer-unten.php


Quell Code


 <!doctype html>
<html lang="de">
  <head>
  <title>urztzui</title>
  <style>
    
*{
 margin:0;
 padding:0;
 list-style:none;
}
 
html,body{
 height:600px;
 background:#123456;
}
 
 
body:before {
 content:"";
 height:calc(600px - 12px);
 margin-bottom:-100px;
 float:left ;
 display:inline-block; 
}

header{
 background:blue;
 height:100px;
  border:2px solid white;
}  

main{
  display:flex;
 overflow:hidden;
 background:blue;
 height:calc(600px - 200px);
 border:2px solid white;

}
#content{
  flex:8;
  padding:50px;
  border:2px solid green;
}
aside{
  display:flex;
  border:2px solid red;
  flex:2;
}
footer {
 clear:both;
  height:100px;
 background:blue;
 border:2px solid white;
} 

    
    
    </style>
  </head>
<body>

<header><h1>Footer immer unten mit der Pseudoklasse :before</h1></header>

<main>
  <aside id="left">
    left
  </aside>
  <div id="content">

  <section>
   <h2>Platz für weitere Spalten ( Menü und Inhalt )</h2>
    </section>
      <section>
    inhalt2
    </section>
  </div>
   <aside id="right">
    right
  </aside> 
</main>
 
<footer></h4>Footer</h4></footer> 
</body>

</html>


Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0