Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Block elements take full width when text wraps on to two lines Re: Block elements take full width when text wraps on to two lines

#139666

Thanks for the replies.

Ideally I was looking to achieve the red background to only span the width of the text (like what is achieved using inline) BUT where the second line isn’t as long as the first the background to still extend to the width of the first line (so it still looks like a block).

Getting the feeling this isn’t possible?