S
S
Sergey Bezrukov2017-12-17 19:19:05
HTML
Sergey Bezrukov, 2017-12-17 19:19:05

Where does the horizontal scroll come from?

Hello, here is the site itself:
https://hrederik.github.io/template2/index.html
Problem:
A horizontal scroll appears on mobile screens in the Yandex browser. A white bar appears in Chrome. I can't figure out what's wrong. Thanks in advance for your reply.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
A person from Kazakhstan, 2017-12-17
@Hrederik

through the inspector found a jamb - but I don’t understand why such a decision

@media (max-width:540px){
  #footer {
    padding: 20px 40px;
  }
}

I don’t understand why the scroll disappeared after increasing the padding, but that’s the fact
5a36a10fb616e749666591.png

L
lnked, 2017-12-17
@lnked

Add this code

@media (max-width: 540px) {
  #footer {
      overflow: hidden;
  }
}

A
Anon78, 2017-12-17
@Anon78

Thank you. You helped me with my website too.

K
kokosovi4, 2018-03-05
@kokosovi4

In the code snippet:

@media (max-width: 540px)
#sw-icons {
    text-align: center;
    padding: 0 33px 0 0;
    width: 100%;
}

try removing the rulewidth: 100%;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question