Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <style> .main { display: flex; width: 280px; height: 300px; border: 1px solid black; } .main div { flex: 1; } </style> </head> <body> <h1>Die Eigenschaft flex </h1> <div class="main"> <div style="background-color:red;">RED</div> <div style="background-color:#1c87c9;">BLUE</div> <div style="background-color:#8ebf42;">Green div mit mehr Content.</div> </div> </body> </html>