Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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/XJ8GtGK

    Footer
    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?
    Thanks

    #1117151

    Hey marsh1984,

    The header has to have not transparency if it is fixed on mobile.

    Can you disable caching and minification for now?

    Best regards,
    Victoria

    #1117276

    Thanks 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.

    #1117295

    Also 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?
    Thanks

    #1117655

    Hi,

    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,
    Ismael

    #1117681

    Hi 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/Vvmhk9G

    #1118012

    Hi,

    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

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.