Forum Moderators: not2easy
h1, h2, h3, h4, h5, h6, p {
margin: 10px auto 10px auto; /* reads top, right, bottom, left; */
}
You can also shortcut this to
h1, h2, h3, h4, h5, h6, p {
margin: 10px auto; /* reads top/bottom, right/left; */
}
You can do the same with the padding if necessary:
h1, h2, h3, h4, h5, h6, p {
padding: 10px auto; /* reads top/bottom, right/left; */
}
But try the margins first before changing the padding.
The number I pick, 10px, is arbitrary. Use what you need to achieve the look you want. The fact different browser assign different margins and padding to elements is a pain, but not always crucial unless you have a fixed design layout they you do not want to shift.
Marshall