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.
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;
}
}
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?
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;
}
}
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!
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):
Try this and let us know how it goes.
Thanks,
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!
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.
We look forward to your reply.
Thanks,
Amazing, thank you so much - works perfectly! All best!