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

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.