Tutorial > CSS > CSS fixed header margin auto

CSS fixed header margin auto

When you putting h tag inside a div and your div have borders, sometimes you see blank space. To fix that problem we adding CSS style to the header tag.

The problem: There is auto margin to the header tag that we didn't ask for...

The fix: In this example we used h2 tag, so write this in your CSS.






  Rating 4.6   Review by Thebestdata
Tags:h , h2 , h1 , header , margin , -webkit-margin-before , -webkit-margin-after , 
100% div height CSS
Center website CSS with tables
Center site without width
How to center website CSS using margin auto with div
CSS center absolute element
Tutorial > CSS > CSS fixed header margin auto