Jump to content

Force header to stay centered and on two lines mobile devices

Recommended Posts

Hi!

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;
  }
}

 

Best,

Sigurd

image.thumb.png.abfd605e02742b101b408c70435c1bd0.png

 

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.