Okay
  Public Ticket #3561881
Logo Padding at Top (Salient)
Closed

Comments

  •  1
    sveti1993 started the conversation

    Hello,

    I would like to have no padding at the top of my logo so that the logo is directly at the top border of the site. It should work on all devices/screen resolutions. 

    Thanks! 

  •  2,967
    Andrew replied

    Hi there,

    Thank you for reaching out to us.

    Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):

    @media only screen and (min-width: 1000px) {
        #header-outer .container {
          margin: -28px auto 0;
        }
    }
    

    Try this and let us know how it goes.

    Thanks,

  •  1
    sveti1993 replied

    Hi Andrew, 

    Thank you so much for the quick reply and help. It works perfectly on Laptop/PC etc. but on the mobile phone it's pushing it too much to the top (I think 28px margin is too much for mobile). Is there a way it can be fixed also on mobile?

    Thank you! 

  •  2,967
    Andrew replied

    Hi there,

    Thank you for getting back to us.

    The previously shared CSS was to only affect large screen devices and not mobile devices. Please undo the previously shared CSS and also the CSS that you modified and replace it with this one and let us know if this works for you.

    @media only screen and (min-width: 1000px) {
        #header-outer .container {
          margin: -28px auto 0;
        }
    }
    @media only screen and (max-width: 999px) {
        #header-outer .container {
          margin: -12px auto 0;
        }
    }

    We look forward to your reply.

    Thanks,

  •  1
    sveti1993 replied

    Amazing, thank you so much - works perfectly! All best!