Ich finde deinen Code echt super, doch ich da noch Fragen. Ich schau mir den jetzt schon seit Tagen an und hab auch mit rum gespielt.
Code
footer
{
color: wheat;
width: 100%;
display: flex;
justify-content: space-around;
flex-wrap: wrap;
font-family: "Arial, sans-serif";
background-color: rgb(74, 71, 71);
}
footer>section
{
flex-grow: 1;
display: flex;
flex-direction: column;
align-items: center;
flex-grow: 1;
margin: 2rem;
text-align: center;
flex-basis: 0;
}
footer>section>h4
{
font-size: 2rem;
border-width: 1px 0 1px 0;
border-style: solid;
width: 100%;
padding: 0.5rem 0;
margin-bottom: 2rem;
}
Alles anzeigen
das ist das grundsätzliche Footerstyle. Doch wieso flex-direction: column;
Müsste die 4 section dann nicht untereinander stehen
Welchen vorteil hat der Html Tag address.
HTML
<section class="hours">
<h4>Öffnungszeiten</h4>
<div>
<p>Montag <span>17:00 - 22:00</span></p>
<p>Dienstag <span>Ruhetag</span></p>
<p>Mittwoch <span>17:00 - 22:00</span></p>
<p>Donnerstag <span>17:00 - 22:00</span></p>
<p>Freitag <span>17:00 - 22:00</span></p>
<p>Samstag <span>17:00 - 22:00</span></p>
<p>Sonntag <span>17:00 - 22:00</span></p>
</div>
</section>
<section>
<p>
Am 3. Samstag eines Monats bleibt die Walachei geschlossen.<br>
Wir bitten um euer Verständnis
</p>
<p>www.walachei-spachbrücken.de</p>
</section>
</footer>
Alles anzeigen
Wieso ordnet sich die letzte section mittig unten an?
footer>section:last-of-type Das ist der unterster Flexcontainer
first-of- und last -of-type bezeichnen die beiden letzen Absätze.
Aber woher weis die letzte section dass sie unter den 3 vorigen sections anordnen soll?