Is there a way to get the browser to show a paragraph element even if it is empty?
I am finding that if a p element has no text in it then the browser doesn’t show it.
I know that this is probably a good thing most times, but I am parsing & displaying HTML2 code from people who are using HTML badly(using blank p elements as vertical spacers instead of br elements) so I have a need to show these blank paragraph elements to get the display the same as on the users old version.
Is there a CSS setting or HTML setting that will make the browser draw/show blank paragraph elements? Maybe I need to set the HTML DTD?
Use
min-height:1em. See http://jsfiddle.net/kcU5R/ for a demo.