Jump to content

Center Header on Mobile and Fix Page Width on Mobile

Recommended Posts

Site URL: https://balmcreativeco.com

Site password: balm2022

Hi! Something in my custom css is making my header align right on mobile even though I have the centered layout option selected. Also when I scroll on the mobile version, there's some extra space on the page so it scrolls right to left as well as up and down. And tips? 

Last thing, I have weird text breaks in headings on mobile. I tried resizing the mobile header fonts in this code, but it didn't work and letters still fall on a second line in some of my headers on mobile. 

h1 {    
        font-size: calc(3vh + 1rem)!important;
  }
 

Thank you in advance! 

Link to comment
  • Replies 1
  • Views 268
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

#1. Remove this CSS

 .header .header-layout--with-commerce .header-title-nav-wrapper {
        flex: inherit !important
    }

#2. Add to Design > Custom CSS

html, body {
	overflow-x:hidden;
}

#3. If you use calc, you need to add this symbol

h1 {    
        font-size: calc(~"3vh + 1rem") !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

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.