Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
unwanted line spacing
i’ve come across this problem a few times in my txp travels, and i’m sure some others have to. i really want to nip this in the butt.
let’s say i have some text that doesn’t ask for break, sometimes txp puts in an extra space. like:
line1
line2
line3
line4
when i want it to look like:
line1
line2
line3
line4
i’ve seen this on normal paragraphs and on sidebar links. any help would be great.
Offline
Re: unwanted line spacing
Need more info. Is it an HTML (Textile) problem or CSS (visual line-height) problem? Is the site live? It sounds like CSS, so look for margin and/or line-height properties in the CSS file.
Last edited by jm (2008-01-15 05:53:43)
Offline
Re: unwanted line spacing
jm wrote:
Need more info. Is it an HTML (Textile) problem or CSS (visual line-height) problem? Is the site live? It sounds like CSS, so look for margin and/or line-height properties in the CSS file.
it has happened on two seperate sites, in areas that have very little markup on them. so basically in a random spot. i thought because of this someone has bound to have run into the problem(the kicker being two seperate txp installations have suffered from it). now when you mention the margin/line-height properties i’m starting to think something about the default CSS sheet that comes with TXP but again it’s completely random how this happens imo
Offline
Re: unwanted line spacing
code looks like:
<center>
<h2>Topics</h2>
</center>
<txp:category_list type=“article” />
rendered as:
EDIT: i fixed this problem cause after the <txp:category_list> tag i have a <br>
i got rid of the <br> which apparently wasn’t even breaking the line anyways and it fixed the problem. the confusing part is why this <br> tag caused the problem for a random line above it?
Last edited by mrtunes (2008-01-15 07:19:50)
Offline
Offline
Re: unwanted line spacing
thank you for the response Gocom, will keep this in mind next time i’m stumped
Offline
Pages: 1