1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<html> <head> <style> body { margin: 0; } #container { display: flex; flex-direction: column; border: 10px solid lime; width: 80px; height: 80px; background-color: red; } #item { background-color: lime; width: 80px; height: 80px; } </style> </head> <body> <div id="container"> <div id="item"></div> </div> </body> </html>