Jump to content

Mobile Buttons next to each other

Recommended Posts

Site URL: https://h2o-test.squarespace.com/

Website: https://h2o-test.squarespace.com/

Password: Contractor1

 

Hi,

 

I'm looking for a solution for the buttons in the "Drain Cleaning" section on the homepage.

There are 4 dark blue buttons and I would like them to be divided in to columns of 2 instead of having them all stacked.

On mobile the text of a couple of the buttons also doesn't vertically center anymore. How would I fix that.

 

Any help would be much appreciated!

 

Cheers,
Tom

Link to comment
  • Replies 5
  • Views 731
  • Created
  • Last Reply

Add to Design > Custom CSS

/* Mobile buttons in 2 columns */
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1631677780836_4205~.row .span-2 {
    width: 50% !important;
    float: left !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Awesome, thanks so much Tuanphan!

I have another issue in the mobile menu. The chevron left when you go to the Services submenu is slightly transparent. I've tried using  opacity: 1 but it's not working so I must be targeting the wrong thing. Do you have any recommendations on how to fix this? 

Cheers,
Tom

Link to comment
On 9/18/2021 at 3:44 AM, Bioscope said:

Awesome, thanks so much Tuanphan!

I have another issue in the mobile menu. The chevron left when you go to the Services submenu is slightly transparent. I've tried using  opacity: 1 but it's not working so I must be targeting the wrong thing. Do you have any recommendations on how to fix this? 

Cheers,
Tom

Use this CSS

.header-menu-controls {
    opacity: 1 !important;
}
nav.header-menu-nav-list {
    background-color: red !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.