I had a box with 3 divs which were all a line each. I gave them each a background color. I wanted to give one of the <pre> so it would hold spaces and newlines like a user may wish. However now that i do that i see an empty line before and after the pre. I have a border solid black 1px in the parent div so i can easily see the background color of the div before it and the border of the parent div.
How do i remove the empty line before and after the pre?
This table shows that most browsers add default margins around PRE. You need to remove them if you don’t want extra space.