HighDots Forums  

newbie: space between text lines.

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss newbie: space between text lines. in the Macromedia Dreamweaver forum.



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

Default newbie: space between text lines. - 06-05-2004 , 06:04 PM






Greetings,

I am completly new to Macromedia Dreamweaver and somewhat new to HTML. I'm
having a problem with the lines of text in dreamweaver. Whenever i type
something then press return. Theres a big space where i accually want the text
to be. I've looked around the product and i cant see any way to fix it. Any
help is greatly appreciated.

Gordon


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

Default Re: newbie: space between text lines. - 06-05-2004 , 06:09 PM






when you type "return" you insert a <p> tag in your code. A <p> tag is a
paragraph tag (equivalent to two line breaks). To insert a line break
tag (a <br>), you need to press SHIFT and Return at the same time.

gordonspeirs wrote:

Quote:
Greetings,

I am completly new to Macromedia Dreamweaver and somewhat new to HTML. I'm
having a problem with the lines of text in dreamweaver. Whenever i type
something then press return. Theres a big space where i accually want the text
to be. I've looked around the product and i cant see any way to fix it. Any
help is greatly appreciated.

Gordon


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

Default Re: newbie: space between text lines. - 06-06-2004 , 09:18 AM



Bad solution, however. (we'll get you thinking right, seb - it's just a
matter of time! 8)

A line break will ALWAYS break the line at that point, no matter how the
text is flowed within its container. This can lead to unexpected appearance
issues.

A MUCH better solution is to use CSS to modify the inherent margins on the
<p> tag, e.g.,

p.special { margin:2px; }
(adjust that value to suit)

<p class="special">This text will continue to flow to fill the width of the
line regardless of the container's width</p>

Then you retain the benefit of having freely flowing text content, AND in
having the line spacing you desire.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
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
==================

"gordonspeirs" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Thanks man!



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.