Flexbox Example 1

Example

Try this

HTML

<div class="container">
<p class="box">Try this</p>
</div>

CSS

.container {
    display: flex;
    background-color: yellow;
    border: thin solid black;
}

.box {
    background-color: aliceblue;
}

CSS

.container {
    display: flex;
    background-color: yellow;
    border: thin solid black;
}

.box {
    background-color: aliceblue;
}