Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-01-12 03:22:50

scdoody
Member
Registered: 2006-10-18
Posts: 129

Extra line spacing

Hello,

It seems like any content i put within a txp tag ends up having spacing issues. For example, this is an image and then immediately following it is an horizontal line (hr) however instead of the HR appearing directly below – there is a space like a br inbetween the image and the hr.

What can I do to fix this because I use the exact same code outisde of the txp tags and it works perfectly.

<txp:if_section name=“industry”> <img src=“images/title-industry.gif”>
<hr id=“two-column” style=“margin-top:0px; padding:0px;”>
</txp:if_section>

Offline

#2 2008-01-12 03:27:05

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Extra line spacing

so you’re saying if you remove the <txp:if_section name=“industry”> and </txp:if_section> tags then the extra space disappears? what do you see in the generated html code when theres a space there? (when viewing source)

Last edited by iblastoff (2008-01-12 03:31:36)

Offline

#3 2008-01-12 04:15:00

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

Re: Extra line spacing

Are you using it in articles? Then it just got Textiled and that caused the linebreak. Turn textile off for those article or use notextile.

Cheers!

Offline

#4 2008-01-12 06:42:32

scdoody
Member
Registered: 2006-10-18
Posts: 129

Re: Extra line spacing

Solved it – I had it wrapped in a paragraph tag by accident! Thanks for the insight though.

Offline

Board footer

Powered by FluxBB