I was having a problem with no padding before my logo in the header. I added some css from the forum and this worked great on desktop view but not on the smaller devices. I’ve tried some other device based css to try and sort this but I can;t get it to work. Its fine on the tablet and mobile views on Customise but not on desktop. The code I am using is:
*/
PADDING ABOVE LOGO THAT IS DEVICE SENSITIVE
https://kriesi.at/support/topic/logo-spacing-above-and-below-logo-in-header/
/*
@media only screen and (min-width:1024px) {
.header-scrolled .logo img {
padding-top: 0;
}
.logo img {
padding-top: 24px;
}
Thanks
Hey ehdavies,
Please try the following in Quick CSS under Enfold->General Styling:
.logo img {
padding-top: 20px !important;
}
Best regards,
Rikard
Hey Rikard. Thanks for looking at this. It works on desktop, laptops – but Its not doing what I want on all screen sizes. On tablets and mobiles, when I use the Customise view option the logo is, the logo is not centred horizontally on the burger menu. Can you provide some more advice please. Thanks Huw
Hi,
Please try this as well:
@media only screen and (max-width: 767px) {
.logo img {
padding-top: 0 !important;
}
}
Best regards,
Rikard
Thats fixed it Rikard – many thanks!
Huw
Hi,
Great, glad we could help. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
Rikard
Hi,
Sure thing. Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)
Best regards,
Ismael