Jump to content

Responsive mode buttons problem

Recommended Posts

Hello everyone.

I need help on my website. I used a custom css profile to have the buttons with the same width but then when i go in responsive mode the buttons are colliding and don't stack on each other.

Here is my website link https://rhino-bullfrog-fc8l.squarespace.com/le-conseil

Here is the css that i used to have them in the same size 

 

sqs-block-button .sqs-block-button-element

{
    width: 350px;
}

 

Thank you for the help !

Link to comment
  • Replies 2
  • Views 1k
  • Created
  • Last Reply

You'll need to set a breakpoint at whatever stage the layout breaks (looks like roughly 1400px wide)

At that breakpoint you should target the collection id to restrict the rule to one page and then for the columns that are 4 wide to span 100% of the available width. 

@media only screen and (max-width:1400px) { 
	#collection-5cda8559cb2c42000142030b section#le-conseil-1 .sqs-col-4 {
 		width: 100% !important;
  	}
}

 

I'm Colin Irwin aka silvabokis.  I've been a Squarespace designer & developer since 2013. 
I remember when it was all wild prairies round these here parts. 🐃🤠
Advice I give on here is free, though I may sometimes post an affiliate link or promote something I've written.
That reminds me.. ..you might want to check out my
Squarespace template finder or have a look at my other Squarespace tips
Speaking of tips, 💲I've got a tip jar that you're welcome to throw a few quid into if you think I've helped you. 
If you're looking for a Squarespace developer 
Book a chat or Drop me a line - first meeting is always free  

 

Link to comment
On 11/26/2019 at 3:08 PM, colin.irwin said:

You'll need to set a breakpoint at whatever stage the layout breaks (looks like roughly 1400px wide)

At that breakpoint you should target the collection id to restrict the rule to one page and then for the columns that are 4 wide to span 100% of the available width. 


@media only screen and (max-width:1400px) { 
	#collection-5cda8559cb2c42000142030b section#le-conseil-1 .sqs-col-4 {
 		width: 100% !important;
  	}
}

 

Thank you very much for your help Sir . It's working perfectly now ! 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.