PDA

View Full Version : Vertical Character spacing


Karen615
08-20-2007, 08:25 PM
If anyone would be so kind to help me out with this one - It's driving me nuts. I entered some text into a layout cell/table (not sure what the properly terminology is) and then I hit enter. It enters a space and I don’t want a space between lines. How do I adjust the vertical spacing? I typed in a few different keywords into the help menu and I cannot find the solution. I thought that this would be a simple find and fix, but I guess it’s not. Not for me anyway. Please help the newbie!
:eek:

wildsue
08-23-2007, 03:58 AM
Hello again Karen!
Here some ideas for your problems:
1. when you hit "enter" in the layout mode you get a new paragraph, for a new line only hit "shift + enter"!
2. you can manage your line heights with css "line-height". Example: p.better-reading: {line-height: 2em;}

Greetings from Switzerland! :)

Susanne

Karen615
08-26-2007, 11:26 AM
Hello Susanne,

Thank you again for your help! That keyboard combination worked great!

Karen

TORCH511
08-26-2007, 09:41 PM
Just so you know what is going on code wise, when you press the "Enter" key in the design screen, Dreamweaver creates a new paragraph and any text input on screen will be placed inside of those tags:

<p>This is a block of text with paragraph tags around it</p>

When you press the Shift+Enter button, Dreamweaver places a break tag.

<p>This line of text has a break tag at the end of it<br />
This line of text will appear on the next line in your browser.</p>

You can control the spacing between paragraphs using CSS using the margin-top and margin-bottom properties.