flex
parent
86b59f0de4
commit
b449bc746b
|
@ -0,0 +1,17 @@
|
|||
.bigbox{
|
||||
width: 100%;
|
||||
border: 2px solid yellowgreen;
|
||||
padding: 1em 1em 0 1em;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.box{
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
margin: 0 1em 1em ;
|
||||
background-color: yellowgreen;
|
||||
}
|
||||
.grow{
|
||||
flex-grow: 1;
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
.contact{
|
||||
margin: 2rem auto;
|
||||
}
|
||||
fieldset{
|
||||
padding: 0;
|
||||
border: none;
|
||||
}
|
||||
legend{
|
||||
font-weight: 900;
|
||||
margin: 2rem 0;
|
||||
}
|
||||
label{
|
||||
display: inline-block;
|
||||
width: 50%;
|
||||
}
|
||||
label{
|
||||
margin: .6rem 0;
|
||||
}
|
|
@ -0,0 +1,85 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="Die HTML Struktur in Webseiten">
|
||||
<title>HTML Struktur</title>
|
||||
<link rel="stylesheet" href="../css/reset.css">
|
||||
<link rel="stylesheet" href="../css/code.css">
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
<link rel="stylesheet" href="../css/flex.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<div class="wrapper">
|
||||
<a href="../index.html"><img src="../img/logo.svg" alt="Mein logo" title="Der Titel meines Bildes"></a>
|
||||
<nav role="navigation">
|
||||
<ul>
|
||||
<li><a href="float.html">Float</a></li>
|
||||
<li><a href="position.html">Position</a></li>
|
||||
<li><a href="flexbox.html">Flexbox</a></li>
|
||||
<li><a href="grid.html">Grid</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main role="main" class="wrapper">
|
||||
<h1>Inhalt strukturieren mit Flexbox</h1>
|
||||
<article>
|
||||
<h2>Flex row</h2>
|
||||
<div class="bigbox">
|
||||
<div class="box"></div>
|
||||
<div class="box grow"></div>
|
||||
<div class="box"></div>
|
||||
<div class="box"></div>
|
||||
</div>
|
||||
</article>
|
||||
<article class="">
|
||||
<h2>Die Boxen</h2>
|
||||
<pre class="line-numbers language-html">
|
||||
<code class="language-html"><div class="bigbox">
|
||||
<div class="box"></div>
|
||||
<div class="box grow"></div>
|
||||
<div class="box"></div>
|
||||
<div class="box"></div>
|
||||
</div>
|
||||
</code>
|
||||
</pre>
|
||||
<h2>& Die zentrierte Flexbox</h2>
|
||||
<pre class="line-numbers language-html">
|
||||
<code class="language-css">.bigbox{
|
||||
width: 100%;
|
||||
border: 2px solid yellowgreen;
|
||||
padding: 1em 1em 0 1em;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.box{
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
margin: 0 1em 1em ;
|
||||
background-color: yellowgreen;
|
||||
}
|
||||
.grow{
|
||||
flex-grow: 1;
|
||||
}
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<div class="wrapper">
|
||||
<p><a title="Link zu Download" href="https://git.perin.work/andy/webdev">Download</a></p>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="../js/code.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -100,10 +100,10 @@
|
|||
<h3 class="mume-header" id="interne-links-1">Interne Links</h3>
|
||||
|
||||
<ul>
|
||||
<li><a href="file:///home/andy/cloud/schule/webdev/html/float.html">float</a></li>
|
||||
<li><a href="file:///home/andy/cloud/schule/webdev/html/position">position</a></li>
|
||||
<li><a href="file:///home/andy/cloud/schule/webdev/html/flex.html">flexbox</a></li>
|
||||
<li><a href="file:///home/andy/cloud/schule/webdev/html/grid.html">grid</a></li>
|
||||
<li><a href="html/float.html">float</a></li>
|
||||
<li><a href="html/position.html">position</a></li>
|
||||
<li><a href="html/flex.html">flexbox</a></li>
|
||||
<li><a href="html/grid.html">grid</a></li>
|
||||
</ul>
|
||||
|
||||
</main>
|
||||
|
|
Loading…
Reference in New Issue