I have a paragraph that contains a span. The <p> tag's width is much wider than the <span> it contains, but I would like it to be only as large as its child <span>.
<p>
<span>Some text.</span>
</p>
I tried width: auto but that doesn't seem to work.