Remove Empty Paragraph With CSS

Glenn Blog 0 Comments

Empty paragraphs between <p></p> tags can be a real nuisance in your code (especially WordPress) as they add empty white space. There are a number of jQuery methods to remove empty para tags such as:- But there’s a much simpler way to achieve this with CSS Only Simply add the following CSS to your styles:- [css] p:empty { display: none; } [/css] …