Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <head> <style> #main { width: 220px; height: 300px; border: 1px solid black; display: flex; align-items: baseline; } #main div { flex: 1; border: 1px solid black; display: flex; align-items: center; } </style> </head> <body> <h1>The align-items Property</h1> <div id="main"> <div style="background-color:coral;min-height:30px;">RED</div> <div style="background-color:lightblue;min-height:50px;">BLUE</div> <div style="background-color:lightgreen;min-height:190px;">Green div with more content.</div> </div> </body> </html>