css - Unwanted white areas on HTML page -


i've made site using css made scratch.

the page the css

randomly there unwanted white spaces in 2 places:

  • above main content area (below menu bar).
  • below main content area , sidebar , above footer.

i've experimented various methods of fixed problem margins , paddings didn't seem work.

what rid of these white areas?

the white space comes browser's default stylesheet. add these rules:

h2 {     margin: 0; }  h4 {     margin: 0; } 

to solve problem, , prevent future ones, recommend using css reset. eric meyer's recommended one; option yui css reset.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -