Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

dreamweaver

ResolvedVersion CS3

Jef has attended:
Dreamweaver 8 Intermediate course

Dreamweaver 8

paragraph styles - how do I change the spacing between paragraphs?

RE: dreamweaver 8

Hi Jef,

Thanks for your question. I hope you enjoyed the Dreamweaver training yesterday.

It's best to use CSS to control the margin of the paragraph. The default margin for paragraph (P tag) varies between browsers (apparently IE has a 1em bottom margin, whereas Mozilla has 1em top and bottom margins).

So you could redefine paragraph tags using CSS code such as this:
P {
margin: 0;
}

Or perhaps you just want to make the margin smaller:
P {
margin-top: .7em;
margin-bottom: .5em;
}

You can also use pixels (10px;) and other CSS measurements.

I have seen a lot of web sites with this at the top of their CSS style sheets:
* {
margin: 0;
padding: 0;
}

This essentially sets ALL elements to have no padding or margin (gets rid of the browser defaults). They are then free to set their own margins and padding on a class by class basis.

I hope this helps?

If this answer resolves your query, please mark the question as 'resolved' (see below). Otherwise, please post a follow-up response to this post, and I will assist you further.

Regards, Rich

Wed 22 Jul 2009: Automatically marked as resolved.

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Dreamweaver tip:

Testing a site

When developing a site, you have to cater to the widest possible audience allowing for users with different browsers and display settings.
Test pages to see how they look with:

- different display resolutions
- browser with graphics turned off
- many different browsers not just IE
- if possible different operating systems.

View all Dreamweaver hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.12 secs.