Site logo

[Support request] Mobile sticky navigation padding

Home Forums Support [Support request] Mobile sticky navigation padding

Home Forums Support Mobile sticky navigation padding

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #2554023
    ammgbr

    Hi,

    Tried using an old css for adjusting the mobile padding of my sticky navigation menu but did not work.

    May I ask what should I be using? I want control for the padding in all directions.

    #2554346
    David
    Staff
    Customer Support

    Hi there,

    just for the sticky mobile nav:

    #mobile-header.is_stuck .inside-navigation {
        padding: 20px 20px 20px 20px;
    }

    The 4 values are top right bottom left in that order.

    #2554507
    ammgbr

    Hi,

    I’m afraid that’s not worked. I’ve cleared cache still not effected.

    #2554524
    Leo
    Staff
    Customer Support

    I’m not seeing David’s CSS being added to your site.

    It should absolutely work – here is a demonstration using the browser inspector tool:
    https://www.screencast.com/t/X8dURePxbpo

    If you have already added the CSS then that means you might have some syntax error in your previous CSS that stops the code from executing.

    Make sure all your @media has a closing bracket }.

    #2554549
    ammgbr

    Hi, I have double checked I cant see a syntax error. Will try again and see what happens

    #2554557
    Leo
    Staff
    Customer Support

    I have double checked I cant see a syntax error.

    \

    Hmm that’s kind of the only reason why I can’t see the CSS using the developer tool.

    If it still doesn’t work, can you move David’s CSS to the very top of all your CSS to test?

    #2554706
    ammgbr

    thank you, managed to spot the syntax error!

    #2554731
    ammgbr

    Hi, I noticed that on scrolling down the padding is lost. Also, the padding on the right affects the search bar whereas I would expect it to set the menu icon that is on the right.

    I’ve removed it for the time being, should the css factor for the menu being sticky?

    #2555190
    David
    Staff
    Customer Support

    I am lost here 🙂
    The CSS o provided adds padding to the mobile header, and only when it sticky.
    And if add that to your site using the browser developers tools it works.

    So what is the issue ?

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