This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > February 2006 > Re: Double line spacing - how to change it?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Double line spacing - how to change it?
Osgood

2006-02-26, 6:14 pm

WiresEverywhere wrote:

> Hi all
>
> Quick question for you :
>
> When I'm typing on a page in DW, when I press ENTER it jumps two lines instead
> of to the line beneath. How do I set it up to jump to the line below when I
> press ENTER?
>
> Thanks.
>
> R
>

When you hit 'enter' you are producing a paragraph <p>This is some text</p>

If you hit 'enter + shift' you are producing a <br> which will eliminate
the space between lines.

However the correct way to do this, unless you actually require a break,
is to control the margin/padding on the <p> tag

<style type="text/css">
p {
margin: 0px 0px 0px 0px; /* top/right/bottom/left, alter to suit */
padding: 0px 0px 0px 0px;
}
</style>

Copying and pasting the above piece of css into your pages code directly
before the </head> tag will allow you to use paragraphs and control the
spccing between them.



WiresEverywhere

2006-02-26, 6:15 pm

Ahhh thanks! Just need to hold shift down when I press enter! Cool!

Thanks for your help!

R
Joe Makowiec

2006-02-26, 6:15 pm

On 26 Feb 2006 in macromedia.dreamweaver, WiresEverywhere wrote:

> Ahhh thanks! Just need to hold shift down when I press enter! Cool!


No, that's not what Osgood said, and it's wrong. Reread the post.

--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/email.php
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews