.products
{
width: 100%;
height: 500px;
background: gray;
}
.box
{
width: 250px;
height: 300px;
background: darksalmon;
border: 1px solid #000;
}
<div class="products">
<div class="box">
<p>Ola</p>
</div>
</div>
My objective is to enclose the paragraph within a square. However, the current code displays both divs together and only shows the content inside the paragraph.
The desired layout is illustrated in the following image: