Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <style> .flex-container { display: flex; align-items: center; /* Verwenden Sie einen anderen Wert, um das Ergebnis zu sehen. */ height: 300px; background-color: #1c87c9; } .flex-container > div { width: 25%; padding: 5px 0; margin: 5px; background-color: lightgrey; text-align: center; font-size: 35px; } </style> </head> <body> <div class="flex-container"> <div>1</div> <div>2</div> <div>3</div> </div> </body> </html>