White stripes of indents torture the appearance of my site. How to get rid of them?
Closed due to the fact that the issue is too common for the participants D-side , lexxl , HamSter , Grundy , Nicolas Chabanovsky ♦ Nov 7 '16 at 13:07 .
Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .
- oneThe answer is "find out what they are called and remove it." But only you can do it, your project, you better know where that is. - D-side
- // Remove default margins, fix height html, body {height: 100%; margin: 0; padding: 0; } - Vadizar
2 answers
It may also have a margin for the body, which sets the user-agent (in chrome, this is 8px). Try nullifying the styles or at least the margin of the body.
If we are talking about the header of the site (footer) which is enclosed in a div and you want to press it to the edges of the screen, then the CSS code:
div{ position:absolute; top:0px; left:0px; } These CSS properties can help solve a problem, but be careful with absolute positioning - for the remaining elements on the page, your footer will cease to exist and they may behave unpredictably. If absolute does not fit, try position:fixed;