S
S
sllugovskih2015-07-01 01:10:54
css
sllugovskih, 2015-07-01 01:10:54

How to remove the indent from the top of the site in Firefox?

Hello, there is a site nsk-vesna.ru/vybor-uchastka in all browsers is displayed normally except Mozilla, it has an indent from above. What needs to be changed in the layout to remove this?
5NID5Nt.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Petrov, 2015-07-01
@sllugovskih

Your problem, like many others, is not knowing margin collapsing . The source of the top padding on the body in this rule:

.footer {
  margin-top: 40px;
}

Either remove the padding, or replace it with padding , or set:
.wr:before {
  content: "";
  display: table;
}

It is correct to do this for the parent element, but writing rules for the tag name is a sure way to confusion.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question