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