Beispiel:CSS-Anw-Flexfooter-1.html

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche
<!doctype html>
<html>
	<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="stylesheet" type="text/css" media="screen" href="./Beispiel:SELFHTML-Beispiel-Grundlayout.css" />
  <title>Flex-Footer</title>
  <style>
  main {
    min-height: 5em;
  }
footer {
    background-color: #fffbf0; 
    border: 1px solid #e7c157;
    border-radius: 0 .5rem .5rem;
    margin: 1rem;
    padding: 1rem;
}

</style>
</head>
 
<body>
  <h1>feststehender Footer mit Flexbox</h1>
  <main>
    <h2>main</h2>
  </main>
 
  <footer>
    <h2>footer</h2>
    <p>unterhalb des vorherigen Elements positioniert</p>
  </footer>
</body>
</html>