Beruflich Dokumente
Kultur Dokumente
paulopitz@htl-shkoder.com
Wiederholung Flexbox
• Reihenfolge im Quelltext
• CSS Flex
• CSS Grid (nächstes Jahr)
• CSS Position
Siblings
H1 (Child 1) P (Child 2) Img (Child 3)
Span
(Child 1 of Child 2)
<main> Hallo
<h1>Hallo</h1> Das ist ein Absatz
<p>Das ist ein <span>Absatz</span></p> Bild
<img src="test.jpg" alt="Testbild">
</main>
Position: Relative
.element {
position: relative;
top: 20px;
left: -10px;
}
Position: Absolute
.element {
position: absolute;
top: 20px;
left: -10px;
z-index: 100;
}
Position: Fixed
.element {
position: fixed;
}
Übung: position: absolute;