I'm trying to make a really simple coverage report using the most basic html and css. Here's what I have so far:
pre div {
background-color: green;
display: block;
}
<pre>
<code>
<div>Option Explicit</div>
Sub HelloWorld()
Debug.Print("Hello World")
End Sub
</code>
</pre>
This works OK, but the div
tag seems to add some white space between the line which contains Option Explicit
and the line containing Sub HelloWorld
. I do not want this.
Why is the div element adding this whitespace and how can I remove it?