Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-26 20:36:48

barnettgs
Member
Registered: 2005-09-20
Posts: 23

Comment - why <p> tags inside comment message?

I have noticed that there’s big gap between comment message and visitors’ name. It turned out to be <code><p></code>tags which isn’t supposed to be there in between <code><li></code> tags. The problem is solved only by removing <code><p></code> tags in messages via administrator panel.

I have looked at form and page but can’t find it so I suspect it is in textpattern tag generator?

Last edited by barnettgs (2006-03-26 21:55:45)

Offline

#2 2006-03-26 21:28:21

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Comment - why <p> tags inside comment message?

Use < code>< /code> tags (without the spaces) to show your code properly in the forum. :)

TXP used to use “br” tags to display gaps between paragraphs but it was decided that it was more semantically acceptable to use “p” tags instead. Having “p” tags inside “li” tags is perfectly valid. You can style the “p” tags inside your comments in the CSS. Most browsers add top and bottom padding to paragraphs by default, usually around 12px so simply specify what you would like instead.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2006-03-26 21:37:05

barnettgs
Member
Registered: 2005-09-20
Posts: 23

Re: Comment - why <p> tags inside comment message?

Sorry, forgot to put in code but I wonder is it possible make it stop it using <code><p></code> tag?

Anyway, I have removed comments & disabled comments bec it does not make easy read.

Last edited by barnettgs (2006-03-26 21:56:24)

Offline

Board footer

Powered by FluxBB