Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-12-27 14:30:33

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

txp:comment_message question

My comments are always wrapped in p tag. I just wanted to know is this normal, or am I missing something.
I am not asking about ol or div that is ok, and everything is working, but for instance, I got this on my web site:

<ol class=“comments”>
<li class=“commEntries”><p>Some comments text<br />
Marko</p>
<p>Posted by: Mark on 2007-12-25 21:14</p>

</li>
<li class=“commEntries”><p>Some comments text</p>
<p>Posted by: Alesandar on 2007-12-26 19:30</p>
</li>

</ol>

So, this p after li is that the usual behavior of comment_message tag?

Last edited by AndrijaM (2007-12-27 14:30:56)

Offline

#2 2007-12-27 14:40:49

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: txp:comment_message question

Yes, it’s normal and produced by Textile formating. How odd would comments without paragraphs or another formating would look…

Cheers!

Offline

#3 2007-12-27 14:48:06

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

Re: txp:comment_message question

Thank you, I just tought that I dont need this p inside li to style the text, but ok. Thanks again.

Offline

#4 2007-12-27 16:00:57

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: txp:comment_message question

AndrijaM wrote:

Thank you, I just tought that I dont need this p inside li to style the text, but ok. Thanks again.

If you have a comment with two paragraphs, you need it ;).

Offline

#5 2008-04-01 22:50:28

lozmatic
Member
From: Melbourne, Australia
Registered: 2006-08-27
Posts: 259
Website

Re: txp:comment_message question

Is there a way to style that p tag so that if a border is added to the li tag the number border doesn’t go over the number.

I wouldn’t assume that a p tag is always needed somewhere. it’s better to offer that choice, IMHO.

Offline

#6 2008-04-02 01:11:17

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: txp:comment_message question

li { list-style-position: inside }

or

p { margin: 0 0 0 1em /*or npx */ }

Offline

Board footer

Powered by FluxBB