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>
<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>
Code:
<style type="text/css">
P {margin-top: 0px; margin-bottom: 0px;}
</style>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.