JSFiddle - React, Tailwind, and code Playground
HTML
<div class="containerOut">
<div class="containerIn">
1)in in in in in in sufficently large to take like 100% of the width !!!§§§! !
</div>
<div class="containerIn" style="width:100%; top:66px">
2)but a width set to 100%<br />
would look uglyly like this<br />
........
</div>
<div class="containerIn" style="top:177px">
3)in not large and<br/>
and I'd prefer to look<br/>
like 1)
</div>
<div class="containerIn" style="bottom:1px">
4) possibly avoiding this:
****************************************************************************
</div>
</div>
CSS
.containerOut {
position: absolute;
width: 400px;
height: 400px;
border: thin solid black;
font-family: Arial;
}
.containerIn {
position: absolute;
outline: 1px solid red;
width: auto;
padding: 4px;
}