css - Unwanted white areas on HTML page -
i've made site using css made scratch.
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
Post a Comment