Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <title>Der Titel des Dokuments</title> <head> <style> .box { width: 350px; height: 200px; padding-left: 0; list-style-type: none; border: 1px dashed black; display: -webkit-flex; display: flex; } .box div { flex: 1; } .green {background-color: #8ebf42} .blue {background-color: #1c87c9;} .gray {background-color: #666} </style> </head> <body> <h2>Beispiel für die Eigenschaft flex</h2> <div class="box"> <div class="green">GRÜN</div> <div class="blue">BLAU</div> <div class="gray">GRAU</div> </div> </body> </html>