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

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: 
https://squarefortytwo.com 

🔌 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.