Jump to content

Keeping icons side by side in mobile

Recommended Posts

Site URL: https://www.efficience.ma

Hello guys!

 

I have a slight issue with my website regarding icons, I have made a small menu in a section which contains 6 image blocks which are linked to different pages on my site. On desktop they look fine but on mobile they become huge and stack on top of each other. How can i prevent this from happening? Should i format it a different way or should i inject some sort of custom code? 

 

Website in question: www.efficience.ma

 

Any input is greatly appreciated! Thank you in advance.

 

Regards.

Screenshot 2020-09-24 at 12.42.51.png

Screenshot 2020-09-24 at 12.43.19.png

Link to comment

Add to Home > Design > Custom CSS

@media screen and (max-width:767px) {
div#block-bbcd22ee0280b4ec2919+.row>.col {
    width: 20% !important;
    float: left !important;
}
div#block-bbcd22ee0280b4ec2919+.row>.col * {
    font-size: 10px;
}
}

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
19 hours ago, tuanphan said:

Add to Home > Design > Custom CSS


@media screen and (max-width:767px) {
div#block-bbcd22ee0280b4ec2919+.row>.col {
    width: 20% !important;
    float: left !important;
}
div#block-bbcd22ee0280b4ec2919+.row>.col * {
    font-size: 10px;
}
}

 

It worked, it bumped one icon down below but its way better than before. Thank you so much!

Link to comment
On 9/25/2020 at 6:59 PM, MarvinS said:

It worked, it bumped one icon down below but its way better than before. Thank you so much!

you can edit 20%

100%/6 = 16.667%

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.