Jump to content

Force header to stay centered and on two lines mobile devices

Recommended Posts


I have a longish title for my site header, and on mobile devices it needs two lines. An option it to reduce font size, but then it gets quite small..

I have tried this code. It makes it into two lines, but how to make the placement centered?

@media only screen and (max-width: 640px){
.header-title {
  max-width: 120px !important;






Link to comment

Try adding this to your Custom CSS:

.header-title-nav-wrapper {
    justify-content: center;

Let me know if that helps, and give me a thumbs up if you can, thanks!

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.