Jump to content

Position buttons for mobile

Go to solution Solved by Ziggy,

Recommended Posts

Posted

Hello :)

I need help with positioning my buttons. Ideal would be: the first button centered on the screen and the following two buttons on the left side, alligning to the textblocks. 

So far i used this Code to resize the buttons: 

@media screen and (max-width:767px) {
div#block-f2a8291c0bdfb307573a a {
    font-size: 14px !important; width : 200px;
}
}

and with this one i tried to center them: 

@media screen and (max-width:767px) {
div#block-f2a8291c0bdfb307573 a
{ display: flex;
  justify-content: center;
  align-items: center;
}
}

Since i only have 3 Buttons on my page i went with the block-codes. But i guess the problem is with that frame that comes from squarespace (see picture). Maybe if i can center my buttons inside that frame it would work somehow. 

The URL is: https://amethyst-pelican-2l2k.squarespace.com/
The password is: umowebseite

Thank You!

 

Bildschirm­foto 2023-07-10 um 08.47.01.png

  • Solution
Posted

If you change the buttons to FILL instead of FIT you can control the size and positioning on desktop and mobile, that way you don't have to risk breaking the button position with CSS.

Let me know how that works for you.

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.