I have a background photo on my site using background-size:cover . It works for the most part, but leaves a strange ~ 30px empty space on my Galaxy S3 in portrait mode.
I attached a screenshot. The 1px teal line is designed to illustrate the entire screen. It seems that the background stops right after the ul s social networks.
I checked this by removing ul , and the background tied it to the bottom of the tag text.

Also, here is my mobile port related CSS:
@media only screen and (max-width: 480px) { .logo { position: relative; background-size:70%; -webkit-background-size: 70%; -moz-background-size: 70%; -o-background-size: 70%; margin-top: 30px; } h1 { margin-top: -25px; font-size: 21px; line-height: 21px; margin-bottom: 15px; } h2 { font-size: 35px; line-height: 35px; } .footer_mobile { display: block; margin-top: 20px; margin-bottom: 0px; } li { display: block; font-size: 1.3em; }
Previously, this was not, but I probably accidentally listened to it, trying to solve another problem.
html css background media-queries
Vitaliy G. Dec 01 2018-12-12T00: 00Z
source share