html - Flexbox: center horizontally and vertically - Stack Overflow

PHOTO EMBED

Tue Aug 02 2022 13:27:22 GMT+0000 (UTC)

Saved by @RitvikBuxi321 #html

<div id="container"><!-- flex container -->

    <div class="box" id="bluebox"><!-- flex item -->
        <p>DIV #1</p>
    </div>

    <div class="box" id="redbox"><!-- flex item -->
        <p>DIV #2</p>
    </div>

</div>
content_copyCOPY

Html of title

https://stackoverflow.com/questions/19026884/flexbox-center-horizontally-and-vertically