how to avoid a new line with p tag?

Josh picture Josh · Jan 16, 2010 · Viewed 262.2k times · Source

How can I stay on the same line while working with <p> tag?

Answer

Doug Neiner picture Doug Neiner · Jan 16, 2010

Use the display: inline CSS property.

Ideal: In the stylesheet:

#container p { display: inline }

Bad/Extreme situation: Inline:

<p style="display:inline">...</p>