Jump to content

CSS to Remove Blank Space Above and Below Site Title on Mobile?

Recommended Posts

Site URL: http://amyroperlyons.com

I want to remove the large blank spaces above and below the my Site Title (AMY ROPER LYONS) on mobile (see image attached). There are no big spaces on desktop or tablet view. I tried all the code I could find on this forum that seemed to apply to this situation but nothing had any effect. Web address is http://amyroperlyons.com if you want to look.

Annotation 2020-10-11 231136.jpg

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Add to Home > Design > Custom CSS

@media screen and (max-width:767px) {
header#header {
    padding-top: 0 !important;
    margin-bottom: 0;
}
h1.logo {
    font-size: 40px !important;
}
}

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Thanks very much, Tuan! The code you suggested:

@media screen and (max-width:767px) {
header#header {
    padding-top: 0 !important;
    margin-bottom: 0;
}
h1.logo {
    font-size: 40px !important;
}
}

worked perfectly and the body images and text now appear much closer to the Site Title on mobile. Thanks!

Annotation 2020-10-12 103353.jpg

Edited by a2lyons
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.