How to remove empty navigation or paragraph tags using css code.

Joined
Dec 23, 2013
Messages
323
Points
18
While i am working on a wordpress website i am getting some unnecessary empty tags.
I tried to remove them, but they are not appearing in post html code.
So i have tried a lot finally i found a simple code to remove those empty tags such as navigation and paragraphs from html code just by using css.

The css code to remove empty paragraph tag in any website html or especially in wordpress posts is shown below:

p:empty {
display: none;
}
The css code to remove empty navigation tag is shown below:

#nav {
display: none;
}
With this code we can easily remove empty tags.
 
Older threads
Newer threads
Replies
0
Views
2,166
Replies
6
Views
3,486
Replies
4
Views
3,537
Latest threads
Replies
1
Views
217
Replies
2
Views
1,133
Replies
0
Views
475
Replies
2
Views
1,482
Replies
0
Views
1,054
Recommended threads
Replies
6
Views
1,955
Replies
11
Views
6,469
Replies
8
Views
4,282
Replies
5
Views
2,509

Latest postsNew threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top