Click to See Complete Forum and Search --> : need help defining for <p> tag


ecross
11-25-2003, 11:24 AM
I need help tring to define in CSS the top and bottom margins to 0 (zero) for a paragraph. Can anybody help me?

<style type="text/css">
<!--
p { define top and bottom margin }
-->
</style>

<p>All paragraphs should be set to zero for the top and bottom margins.</p>

gil davis
11-25-2003, 11:32 AM
[code]<style type="text/css">
P {margin-top: 0px; margin-bottom: 0px;}
</style>

kedrhodes
12-02-2003, 12:31 PM
I use the shorthand version when I can. It would look like this:

P {margin: 0px 0px 0px 0px;}

The order CSS will read is: Top, Right, Bottom, Left.

I hope that helps.