<!doctype html><style> * { border: 1px solid black; } .box { background: pink; display: block; width: fit-content; } </style><div class="box">Well hello friends</div>