display 2 <p>'s side by side
<p>I want to display 2 paragraphs side by side.</p>

<pre><code>&lt;p class = "firstClass"&gt;This is first line.&lt;/p&gt;
&lt;p class = "secondClass"&gt;This is second line.&lt;/p&gt;
</code></pre>

<p>Output:</p>

<pre><code>This is first line.
This is second line.
</code></pre>

<p>Desired output:</p>

<pre><code>This is first line.This is second line.
</code></pre>

<p>To achieve desired output, what should I be writing in css file for classes 'firstClass', 'secondClass'?</p>

<p>Answer: I tried "display:inline" for both of classes and then it didn work</p>