Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
Hey ^^Hier haben wir gerade etwas ganz ähnliches entwickelt:
Margin Padding Boxen (Nav + Content)
Hay. Hab ein paar anliegen bezüglich margin. Mein Problem ist das dass die Abstände zwischen den "Buttons" meiner NAV nicht gleichmäßig sind und ich finde den Fehler nicht. Home Info Teilnehmer...www.tutorials.de
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>Layout ohne Inhalt</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
margin: 0rem 0rem 0rem 0rem;
display: flex;
flex-wrap: wrap;
}
div:nth-child(1) {
background-color: green;
width: 100%;
height: 25vh;
}
div:nth-child(2) {
background-color: yellow;
width: 50%;
height: 25vh;
}
div:nth-child(3) {
background-color: red;
width: 50%;
height: 25vh;
}
div:nth-child(4) {
background-color: blue;
width: 100%;
height: 50vh;
}
</style>
</head>
<body>
<div></div>
<div></div>
<div></div>
<div></div>
</body>
</html>
Hey , Vielen Dank!Das ist einfach, wird dir nur bei der Erstellung von Webseiten kaum weiterhelfen. Das Layout von Webseiten ist immer vom endgültigen Inhalt abhängig. Also zunächst den HTML-Quelltext nach den korrekten HTML-Regeln erstellen und dann das Layout erstellen.
Ein Beispiel für deinen Wunsch:
Code:<!DOCTYPE html> <html lang="de"> <head> <meta charset="utf-8"> <title>Layout ohne Inhalt</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> body { margin: 0rem 0rem 0rem 0rem; display: flex; flex-wrap: wrap; } div:nth-child(1) { background-color: green; width: 100%; height: 25vh; } div:nth-child(2) { background-color: yellow; width: 50%; height: 25vh; } div:nth-child(3) { background-color: red; width: 50%; height: 25vh; } div:nth-child(4) { background-color: blue; width: 100%; height: 50vh; } </style> </head> <body> <div></div> <div></div> <div></div> <div></div> </body> </html>