Setting the width of inline elements May 3, 2022 by Tarik There’s also the option of display: inline-block, which might give you the best of both worlds.