Can you limit a paragraph width based on the text within?
shrutibalasa.substack.com
The question is simple and it feels like the answer should be simple too. Suppose we have a short phrase in a paragraph element like this with a blue background. Now since the p element is a block level element, it stretches full width. How would you restrict it to just the width of the text, like so?
Can you limit a paragraph width based on the text within?
Can you limit a paragraph width based on the…
Can you limit a paragraph width based on the text within?
The question is simple and it feels like the answer should be simple too. Suppose we have a short phrase in a paragraph element like this with a blue background. Now since the p element is a block level element, it stretches full width. How would you restrict it to just the width of the text, like so?