-
AuthorPosts
-
July 9, 2019 at 10:39 am #1117002
Hi team,
I’ve made the header sticky on mobile.
Having an issue now:
All pages apart from the home page load the content behind the header and not below it.
See image: https://ibb.co/XJ8GtGKFooter
I’ve uploaded an image to be footer background and on mobile view is very distorted. Can the footer image be responsive or less pixelated on mobile?
ThanksJuly 9, 2019 at 7:20 pm #1117151Hey marsh1984,
The header has to have not transparency if it is fixed on mobile.
Can you disable caching and minification for now?
Best regards,
VictoriaJuly 10, 2019 at 5:30 am #1117276Thanks for that. Do you mean the header can’t be transparent on mobile or an all screen sizes if I have it sticky on mobile?
Also I’ve disabled minification.
July 10, 2019 at 7:30 am #1117295Also for the footer background image, this is the CSS I added:
/*Footer background image cover*/
.footer_color { background-size: cover; }Is there something else I can add to make the image fit better/not be so blurry?
ThanksJuly 11, 2019 at 4:26 am #1117655Hi,
Thank you for the update.
It doesn’t look that blurry on my end. You can get around that by using a larger or sharper image, but I don’t think that’s necessary. The slight blurriness actually makes the content more readable.
Transparent headers are supposed to be disabled on mobile devices. I can’t find any reason why it’s still working in yours. Please use this css code to move the content below the header container.
@media only screen and (max-width:767px) { .responsive #top #main { padding-top: 120px !important; margin: 0; } }
Best regards,
IsmaelJuly 11, 2019 at 6:17 am #1117681Hi Ismael,
Thanks for your reply.
Have a look at these screen shots of footer – one on desktop with browser window minimised and one on Iphone. Iphone screenshot background image looks to be very zoomed in – can it look more like the desktop screenshot? Thanks
https://ibb.co/VSf5GdY
https://ibb.co/Vvmhk9GJuly 12, 2019 at 10:32 am #1118012Hi,
Thank you for the update.
It looks like that because the background size property is set to “cover” and therefore, the browser has to force the image to cover the entire container while preserving its aspect ratio. We can set the background size to 100% or contain, but it will distort the image or create space around it. You can see the behavior of background-size property in the following link https://tympanus.net/codrops/css_reference/background-size/.
The best solution is to disable the background on mobile view or apply another background or image that is specifically resize for smaller screens or taller container.
@media only screen and (max-width: 767px) { .footer_color { background: #ffffff url(BACKGROUND IMAGE URL HERE) top center no-repeat fixed; } }
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.