What is the standard stock of the <p> element?
We use the Html Wrapper supplied by the client, which refers to the reset stylesheet, which sets the <p> element marker to 0px. I would like to have a normal top and bottom margin with my <p> elements, so can someone tell me what this should be?
The default CSS values ββfor the browser are defined here .
Here is the relevance extract for the field of the element p :
- W3:
1.12em 0 - IE7:
14.25pt 0 - IE8:
1em 0 - FF2:
1em 0 - FF3:
1em 0 - Opera:
1em 0 - Safari 3.1:
1em 0
Reset stylesheets, by the way, are funny. Just set your desired border yourself if you want it to be consistent between browsers.
p { margin: .75em 0; } See also:
- Are the margins and margins between the browsers different?
They are browser dependent. That's why most people use the reset sheet - to normalize them before trying to set them up.