Jump to content

Header padding on mobile

Recommended Posts

Hello,

 

I am creating a website and I would like my logo to be on top of the banner image on the mobile version as well. I tried to use the codes of this website https://www.mcdigitaldesign.com.au/news/squarespace-brine-mobile-header/ but there is still some padding on top (please see the image attached). Is there any other way to do this? I've attached the desktop version too, I would like to achieve the same effect.

 

Thank you in advance

Screenshot 2020-06-13 at 17.19.04.png

Screenshot 2020-06-13 at 17.08.17.png

Link to comment
  • Replies 5
  • Views 1.7k
  • Created
  • Last Reply

Add to Home > Design > Custom CSS

a.Header-branding {
    padding-top: 0 !important;
}

and find this code, edit 14 to another number

#collection-5ee4cc51389cec341add8abe .Mobile-bar-branding-logo {
    content: url(//static1.squarespace.com/static/5ee49d2…/t/5ee52dd…/1592077791818/Lotus+home+-+logo.png) !important;
    max-height: 40px;
    min-height: 40px;
    margin-top: 14vh;
    width: auto !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
1 hour ago, tuanphan said:

Add to Home > Design > Custom CSS


a.Header-branding {
    padding-top: 0 !important;
}

and find this code, edit 14 to another number


#collection-5ee4cc51389cec341add8abe .Mobile-bar-branding-logo {
    content: url(//static1.squarespace.com/static/5ee49d2…/t/5ee52dd…/1592077791818/Lotus+home+-+logo.png) !important;
    max-height: 40px;
    min-height: 40px;
    margin-top: 14vh;
    width: auto !important;
}

 

thank you for your quick reply. I did what you said,

 

Now it looks like this, the logo is higher and the padding stayed. Is there any other way to add a logo over banner on mobile? thank you in advance

Screenshot 2020-06-14 at 12.30.20.png

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.