x
 
Create New Page
 View Previous Changes    ( Last updated by Lisa Wess )

Remove Extra Space Caused By P Tags

For example, you want a list of categories in a comma separated list, one after the other, but the default behavior is to add p tags around each category causing them to appear on separate lines.

Two approaches to this:

Use a Plugin to remove the tag

either “HTML Strip” or “Filter HTML” see: http://plugins.pmachine.com

From thread: http://www.pmachine.com/forum/threads.php?id=24944_0_26_0_C

Amend the css so that the tag no longer adds space

for example, where the div is of class commentbody:

.commentbody p{margin-top: 0; padding-top: 0;}

From thread: http://www.pmachine.com/forum/threads.php?id=24656_0_26_0_C

Or

.commentbody p {    display: inline; }

Category:Tips

Categories: