Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-01-15 05:07:12

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

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

#2 2008-01-15 05:49:50

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

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

#3 2008-01-15 07:03:08

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

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

#4 2008-01-15 07:08:18

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

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

#5 2008-01-15 19:40:23

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

Re: unwanted line spacing

BTW,

  1. <center>-tag is deprecated in xhtml
  2. Also br should be self-closed: <br />

Cheers!

Offline

#6 2008-01-16 00:29:54

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: unwanted line spacing

thank you for the response Gocom, will keep this in mind next time i’m stumped

Offline

Board footer

Powered by FluxBB