If I have a HTML element <header>
and apply some margins to this HTML5 element through CSS as:
header{
margin:10px 0;
}
The <header>
element is not spaced 10 px from rest of the elements. But if I modify my CSS rule like below:
header{
margin:10px 0;
display:block;
}
then the <header>
element is spaced accordingly.
So, my question here is that do I need to manually set display:block;
in order to set margins/paddings to HTML5 elements, like <header>
?
PS: to clarify, this is not part of the production code/live website. I'm just experimenting with HTML5 tags. :)