HighDots Forums  

Vertical spacing between paragraphs

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Vertical spacing between paragraphs in the Macromedia Dreamweaver forum.



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

Default Vertical spacing between paragraphs - 07-05-2006 , 01:05 PM






Hello experts,
I am having trouble closing up the space between a title and a subtitle that
needs to have a different style. I am usingCSS.

Line spacing seems to work only on the vertical space between lines within a
paragraph, not between paragraphs. This makes sense.

I have tried putting each element in its own table cell, each with its own id,
and playing with positive and negative margins and padding. If there is a
combination that would work, I would be glad to hear it. At the moment my
knowledge of margins and padding is based almost totally on trial and error,
not on comprehension.

My current work around is to keep the subtitle in the same paragraph, put in a
line break, and the style the subtitle. That has given me a good result on my
browser, but I'm not sure about other browsers. Also, work arounds me nervous
about creating other problems I don't know about.

Can anyone give me the right solution, or at least critique my work around
solution?

Many thanks so much in advance for help.

Richard


Reply With Quote
  #2  
Old   
Alan Smithee Jr.
 
Posts: n/a

Default Re: Vertical spacing between paragraphs - 07-05-2006 , 01:35 PM






http://www.buddhapada.com/tests/title-subtitle.htm



Reply With Quote
  #3  
Old   
jeremyluby
 
Posts: n/a

Default Re: Vertical spacing between paragraphs - 07-05-2006 , 01:53 PM



Can you post a link to the page and we can look at the issue you are having?

Reply With Quote
  #4  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Vertical spacing between paragraphs - 07-05-2006 , 07:48 PM



p { margin:0; }

Sorry it was so verbose.

--
Murray --- ICQ 71997575
Adobe Community Expert
(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
==================


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

Quote:
Hello experts,
I am having trouble closing up the space between a title and a subtitle
that
needs to have a different style. I am usingCSS.

Line spacing seems to work only on the vertical space between lines within
a
paragraph, not between paragraphs. This makes sense.

I have tried putting each element in its own table cell, each with its own
id,
and playing with positive and negative margins and padding. If there is a
combination that would work, I would be glad to hear it. At the moment my
knowledge of margins and padding is based almost totally on trial and
error,
not on comprehension.

My current work around is to keep the subtitle in the same paragraph, put
in a
line break, and the style the subtitle. That has given me a good result
on my
browser, but I'm not sure about other browsers. Also, work arounds me
nervous
about creating other problems I don't know about.

Can anyone give me the right solution, or at least critique my work around
solution?

Many thanks so much in advance for help.

Richard




Reply With Quote
  #5  
Old   
Alan Smithee Jr.
 
Posts: n/a

Default Re: Vertical spacing between paragraphs - 07-05-2006 , 09:56 PM




Quote:
Sorry it was so verbose.
Your apology was more verbose than the solution you offered.

p { margin:0; }


Of course, this will affect every paragraph on the page...not just the ones
containing the titles and subtitles...and they will have to have seperate
style classes applied, as well.






Reply With Quote
  #6  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Vertical spacing between paragraphs - 07-05-2006 , 10:11 PM



Perhaps that was enough. We don't know really. OK - I'll modify my
suggestion -

p.special { margin:0; }

--
Murray --- ICQ 71997575
Adobe Community Expert
(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
==================


"Alan Smithee Jr." <A_Smithee_J (AT) no (DOT) email> wrote

Quote:
Sorry it was so verbose.

Your apology was more verbose than the solution you offered.

p { margin:0; }


Of course, this will affect every paragraph on the page...not just the
ones containing the titles and subtitles...and they will have to have
seperate style classes applied, as well.







Reply With Quote
  #7  
Old   
Alan Smithee Jr.
 
Posts: n/a

Default Re: Vertical spacing between paragraphs - 07-05-2006 , 10:17 PM



Quote:
We don't know really.
Well, there you go being correct again.
I suppose there could be a page with nothing but a list of Titles and
Subtitles all bunched together with no line seperation.







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 - 2008, Jelsoft Enterprises Ltd.