Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Learn More

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

My css background color doesn't stop, making the page long

  • 5 відповідей
  • 1 має цю проблему
  • 3 перегляди
  • Остання відповідь від Kevin

more options

When I view the site I'm working on using firefox for android, it looks OK if the site is viewed landscape. However, when the site is viewed portrait, the color defined in body {background: #185fa0;} continues on, making the page unnecessarily long. The image is an example, I would like the blue background to finish much closer to the content, like it does in every other browser. Can anyone advise?

Thank-you!

When I view the site I'm working on using firefox for android, it looks OK if the site is viewed landscape. However, when the site is viewed portrait, the color defined in body {background: #185fa0;} continues on, making the page unnecessarily long. The image is an example, I would like the blue background to finish much closer to the content, like it does in every other browser. Can anyone advise? Thank-you!
Прикріплені знімки екрана

Усі відповіді (5)

more options

A screenshot is mostly useless when it comes to coding issues.

more options

kbrosnan said

A screenshot is mostly useless when it comes to coding issues.

I was thinking that is could be related to this bug? https://bugzilla.mozilla.org/show_bug.cgi?id=886969

more options

Does your code use overflow: hidden?

more options

kbrosnan said

Does your code use overflow: hidden?

I can't use overflow: hidden as I want to be able to scroll down the page so that content can be seen. In firefox for android, there is loads of space under the content, which no other browser seems to have. So I thought it could be related to this bug https://bugzilla.mozilla.org/show_bug.cgi?id=886969

Змінено matthewpoll

more options

That would be impossible as you are not using overflow:hidden. How about showing some actual code?