I'm working on a website that has some code and I would like to write:
<pre><code>
line 1
line 2
</code></pre>
But that produces an empty line at the beginning like this as output
[A Blank line in here that I don't want]
line 1
line 2
I know if I write like this there will be no blank lines but I like to write as shown above.
<pre><code>line 1
line 2
</code></pre>
Please suggest me what can I do, with CSS if possible, to hide or remove the first newline/blank-line so that I can keep the newline in my code without blank-lines appearing at the beginning of all my code sections.