user2957214 user2957214 - 1 year ago 32
HTML Question

how to remove line breaks for a block element

How can I remove the line-breaks before and after the

element? I tried to use span instead of
. But what I wanted was a box with a height larger than the text I supply inside it with a particular background color. With span, I think this is not possible. If it is possible, or if there are any other suggestions, please help me.

p {
  display: inline-block;

this should help