HighDots Forums  

Line Spacing

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Line Spacing in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
vinnie roe
 
Posts: n/a

Default Line Spacing - 11-09-2005 , 10:00 PM






When im tryping text and i want to finish a line but not start a new paragraph,
i cant just hit 'Return' because it automatically gives a huge space under the
text to start a new paragraph or something.

eg.

Hi my name is John.
I live in Australia.

Dreamweaver does this.

Hi my name is John.

I live in Australia

There is still only one 'Return' un the 'Hi my name is John' line though.

Any help, thanks in advanace.




Reply With Quote
  #2  
Old   
Tarvardian
 
Posts: n/a

Default Re: Line Spacing - 11-09-2005 , 10:22 PM






Hold down the "shift" key and press "enter".

Reply With Quote
  #3  
Old   
vinnie roe
 
Posts: n/a

Default Re: Line Spacing - 11-09-2005 , 10:26 PM



Thanks alot, much appreciated.

I need to find a way to disable ctrl + scroll. There must be a way.

Reply With Quote
  #4  
Old   
bregent
 
Posts: n/a

Default Re: Line Spacing - 11-09-2005 , 10:49 PM




"vinnie roe" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Thanks alot, much appreciated.

I need to find a way to disable ctrl + scroll. There must be a way.
We already told you that there is no way. Why don't you believe us?

Here's one option

1) Set the font size in px
2) Make believe everyone uses IE
3) Make believe IE users don't know how to resize text

Here's another

1) Redesign your page so that it doesn't break when users resize text.




Reply With Quote
  #5  
Old   
Donna Casey
 
Posts: n/a

Default Re: Line Spacing - 11-09-2005 , 11:46 PM



use css to control the top and bottom margin for paragraphs. When you
use Return in design view in DW, it is creating paragraphs--which have a
default margin-top and margin-bottom. Using CSS, you can create a rule
using DW's css tools (read up online or in help or somewhere if you
don't know how)

p.singleline {
margin-top:0;
margin-bottom:0;
}

and where you want only a single line space between paragraphs, you will
set the class="singleline" by

1)insert cursor into the first paragraph
2) right-click and choose CSS Styles>singleline
3) repeat steps 1-2 for the next paragraph

conversely, if you want all paragraphs to behave like this (spacing),
you can replace the rule above with

p {
margin-top:0;
margin-bottom:0;
}

and you won't have to "attach" the class to any paragraph -- they will
just use the properties because they are paragraphs.

HTH
donna

Reply With Quote
  #6  
Old   
Michael Fesser
 
Posts: n/a

Default Re: Line Spacing - 11-10-2005 , 12:37 AM



..oO(vinnie roe)

Quote:
When im tryping text and i want to finish a line but not start a new paragraph,
i cant just hit 'Return' because it automatically gives a huge space under the
text to start a new paragraph or something.
That's how HTML works, there's no such thing like a "single line". If
you _really_ need a hard line-break press [shift]+[enter] to insert a
'br' element, but I strongly recommend to use them _very_ rarely. For
the best result and most portability just let the text flow.

Micha


Reply With Quote
  #7  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Line Spacing - 11-10-2005 , 07:10 AM



It's a hard line break. It doesn't allow the text to reflow if the
container expands. It doesn't have the same semantic meaning as a new
paragraph. It's the wrong thing to use for this issue....

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Malcolm N....." <malcolm (AT) mgnixon (DOT) org.uk> wrote

Quote:
On Thu, 10 Nov 2005 06:37:35 +0100, Michael Fesser <netizen (AT) gmx (DOT) de
wrote:



That's how HTML works, there's no such thing like a "single line". If
you _really_ need a hard line-break press [shift]+[enter] to insert a
'br' element, but I strongly recommend to use them _very_ rarely. For
the best result and most portability just let the text flow.

What is bad about <br> please ?




--

~Malcolm N....
~
webmaster http://www.nb-president.org.uk/
Steam narrow boat President
Using DW 8



Reply With Quote
  #8  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Line Spacing - 11-10-2005 , 09:33 AM



<div id="whatever">
<p>Line One</p>
<p>Line Two</p>
<p>Line Three</p>
<p>&nbsp;</p>
<p>Line One<br />
Line Two<br />
Line Three</p>
<p>&nbsp;</p>
</div>

#whatever p { margin:0; } /* adjust to suit */


--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Malcolm N....." <malcolm (AT) mgnixon (DOT) org.uk> wrote

Quote:
On Thu, 10 Nov 2005 07:10:25 -0500, "Murray *TMM*"
forums (AT) HAHAgreat-web-sights (DOT) com> wrote:

It's a hard line break. It doesn't allow the text to reflow if the
container expands. It doesn't have the same semantic meaning as a new
paragraph. It's the wrong thing to use for this issue....

OK - I've used it to keep a few lines close together - rather like a
list but without a bullet point.
Obviously in this context - I don't want text to flow.


p>Line One</p
p>Line Two</p
p>Line Three</p
p>&nbsp;</p
p>Line One<br /
Line Two<br /
Line Three</p
p>&nbsp;</p

Is there a better way of reducing line spacing ?
--

~Malcolm N....
~
webmaster http://www.nb-president.org.uk/
Steam narrow boat President
Using DW 8



Reply With Quote
  #9  
Old   
Michael Fesser
 
Posts: n/a

Default Re: Line Spacing - 11-10-2005 , 12:42 PM



..oO(Malcolm N.....)

Quote:
OK - I've used it to keep a few lines close together - rather like a
list but without a bullet point.
Why not use a list then? Of course it depends on the content if a list
would be appropriate in this case.

Micha


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.