Line spacing

message from send2me on 20 Jul 2004
How can I set the the line spacing to none? Every time I hit enter it drops
down 2 lines. If you are going to reply to this saying to just use CSS, please
help someone who knows nothing about CSS to understand what you are saying.

Thanks
 
Murray *TMM* replied to send2me on 20 Jul 2004
Many HTML tags have inherent margins on all four sides. The <p> tag is one
of them.

What your eye is telling you is a big space is just the margin between two
adjacent <p> tags (look at the code and you'll see them).

All margins are accessible to you via CSS. You can control them by
redefining the <p> tag so that its margin is either reduced, or even
eliminated. To do this, you would need to open your page in DW, reveal the
CSS Panel (WINDOW | CSS Styles (F11), and click on the new style icon.

Having done this, you need to decide whether you want to create this style
in a separate externally linked stylesheet, or embed it in this page. For
simplicity, just select the radio button for this page only.

Then you need to tell the CSS Editor that you are going to Redefine a tag by
selecting that radio button, and then finding the "p" in the drop down list
of tags. When you click OK, you will be taken to a Dialog panel on which
you can change styles for a number of categories. The one you want is the
Box category. Select that, and in the single enabled margin field, enter
"3" (for 3 pixels margin top, right, left and bottom). When you click OK,
this will be written to the page's head region -

<style type="text/css">
<!--
p {
margin:3px;
 
Mad Dog replied to Murray *TMM* on 20 Jul 2004
Murray -- I'm curious about what your general, usual and customary plan is
to control spacing on a page where you want different spacings between
<div> tags all over the place?

MD

Murray *TMM* wrote:
 
Murray *TMM* replied to Mad Dog on 20 Jul 2004
p.notsospecial { margin...
#moose p { margin...
#pucky p { margin...

Like that....
 
Murray *TMM* replied to Murray *TMM* on 20 Jul 2004
I'm glad to help!
 

Archived message: Line spacing (Macromedia Dreamweaver Web Design)