Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#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
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
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
Pages: 1