Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to prevent big gap between text Paragraphs

How to prevent big gap between text Paragraphs

Locked

Views: 2,824

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
12 Jun 2006, 11:28 AM
#1
lancebotha avatar

lancebotha

New Zenner

Join Date:
Apr 2006
Posts:
19
Plugin Contributions:
0

How to prevent big gap between text Paragraphs

Hi everyone,

Does anyone know how i can prevent the Double line space between Paragraphs from occurring, when adding text via the 'Define Page Editor'? I was copying the text from word into the editor, but was advised against that. However when copying the text from a plain text editor such as notepad, I’m still getting the problem.

I've selected all text (Ctrl + A) and formatted as - Verdana, 1(8 pt), Normal.

I would prefer to edit the text in 'Define Page Editor' as i'll be handing the site over to Kim, but if i have to alter the actual php file with a text editor then so be it.

Site is https://www.kim-roebuck.com
Zencart : Version 1.3

Thanks in advance for your time and help,

Lance

12 Jun 2006, 5:50 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to prevent big gap between text Paragraphs

I don't know about the Define Page Editor entry, but in Notepad, unless you have wrap set to off (in Format I believe) you will get odd results like a double return.

12 Jun 2006, 11:00 PM
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: How to prevent big gap between text Paragraphs

Lance

Unless you have altered them yourself, your paragraphs will be spaced using the browser default margins. The one that is particularly relevant to you is margin-top. If you add something like > p {margin-top:0.5em}to your stylesheet, you override the browser defaults and should see the gap roughly halve. You can adjust the number of ems to suit your tatse. Do use ems as your unit though, as that way the gap will be proportionate to the size of the text.

14 Jun 2006, 7:18 PM
#4
lancebotha avatar

lancebotha

New Zenner

Join Date:
Apr 2006
Posts:
19
Plugin Contributions:
0

Re: How to prevent big gap between text Paragraphs

Thanks kuroi,

Yor advise sent me searching through the net, and i fond what i was looking for.

In the end i applied this to reduce the gaps between the paraghraphs. The main one, being 'margin'.

p {margin: 0.5em; padding-top: 0.5em; }

Thanks again,

Lance