Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 16th, 2005, 09:45 AM
Authorized User
 
Join Date: May 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Line spacing

I feel a bit of an idiot for posting this question, but alas i cannot for the life of me find an answer.

how, when pressing enter, do u turn off the double line spacing, so that all my lines flow unde each other, rather than having a space between....

Mock me for asking this question.. but please answer also!!!!

Thanks
Steve

 
Old May 16th, 2005, 10:12 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Are you talking about Design View in Dreamweaver?

By default, when you press enter, Dreamweaver adds a <p> tag to create a new paragraph. The browser's default for margin on a paragraph is a few pixels on the bottom, so you get the whitespace.
To remove this whitespace, add the following Css to your page or stylesheet:

p
{
  margin: 0;
}

If you don't want a new paragraph, then press Shift+Enter in Dreamweaver. This adds a <br /> tag which simply causes the next text to be displayed on the next line.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old May 16th, 2005, 11:41 AM
Authorized User
 
Join Date: May 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Even with that set,in design view, when i press return, there is a space
underneath the size of the text i am using.. Is there anyway in design view, to have the lines apear neatly under one another?

Thanks for replying

Steve

 
Old May 16th, 2005, 11:58 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

How exactly did you add it to the page? Can you show some code?
And what version of DW are you using?

i tried this, and with the margin set to 0, DW MX 2004 displays new paragraphs exactly the same as <br /> tags between text.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Line text spacing Adjustment tundewonder Visual Studio 2005 7 July 3rd, 2007 08:18 AM
SPACING PROBLEM jhanny007 PHP Databases 7 December 19th, 2006 07:07 AM
spacing in between the words ramank Classic ASP Basics 1 November 20th, 2006 07:25 AM
PROBLEM SPACING jhanny007 Beginning PHP 2 November 16th, 2006 09:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.