I would like to use flexbox to vertically align some content inside an but not having great success.
I\'ve checked online and many of the tut
Using display: flex you can control the vertical alignment of HTML elements.
display: flex
.box { height: 100px; display: flex; align-items: center; /* Vertical */ justify-content: center; /* Horizontal */ border:2px solid black; } .box div { width: 100px; height: 20px; border:1px solid; }
Hello World
World