Hey. Ich habs jetzt geschafft mein Layout teilweise aufzubauen aber ich krieg es nicht genau so hin wie auf dem Bild. Könnt ihr mir da helfen?
HTML
Mein Code:
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Unbenanntes Dokument</title>
<style type="text/css">
body {
font-family: Arial, Helvetica, Sans-Serif;
font-size: 20px;
background: #EDEDED;
}
#flexContainer {
display: flex;
}
header {
background: #707070;
min-height: 100px;
margin: 3px;
padding: 3px;
}
nav {
background: #C9BFBF;
flex: 1 1 15%;
min-width: 300px;
margin: 3px;
padding: 3px;
}
aside {
background: #C9C9C9;
flex: 1 1 15%;
min-width: 20%;
padding: 3px;
margin: 3px;
}
#content {
min-height: 800px;
min-width: 80%;
background: #ABABAB;
flex: 2 1 70%;
margin: 3px;
padding: 3px;
}
footer {
background: #707070;
min-height: 50px;
margin: 3px;
padding: 3px;
}
article {
background: rgba(90,86,86,1.00);
flex: 1 1 15%;
min-width: 20%;
padding: 3px;
margin: 3px;
}
@media all and (max-width: 640px) {
#flexContainer {
flex-flow: column wrap;
}
header {
min-height: 75px;
}
nav {
min-height: 50px;
order: 1;
}
aside {
min-height: 50px;
order: 2;
}
#content {
min-height: 725px;
order: 3;
}
footer {
min-height: 25px;
}
}
</style>
</head>
<body>
<header>header</header>
<section id="flexContainer">
<nav>sidebar</nav>
<section id="content">section</section>
<aside>aside</aside>
<article>content 3</article>
</section>
<footer>footer</footer>
</body>
</html>
Alles anzeigen