Jump to content

Blocks not in a row in mobile view

Recommended Posts

Posted

Site URL: https://onyxhive.com.au

Hello,

How do I get my 3 icons in my home page to be 3 in a row in mobile view?

In desktop view is fine, and its showing 3 in a row, but mobile its showing in a column, I tried so hard to google it and inline block doesnt work.

My mobile code:

@media screen and (max-width:767px) {
#block-yui_3_17_2_2_1638020814373_14581,   #block-yui_3_17_2_2_1638020814373_16284, #block-yui_3_17_2_2_1638020814373_4525 {
    width: 20%;
    height: auto;
}
}

 

Edit: I fixed it, I dont even know how, I just but a bunch of code together from people from google lol

//Mobile view home page hero icons
@media screen and (max-width:767px) {
#block-yui_3_17_2_2_1638020814373_14581,   #block-yui_3_17_2_2_1638020814373_16284, #block-yui_3_17_2_2_1638020814373_4525 {
    float: left !important;
    clear: none !important;
    padding-left: 5 !important;
    padding-right: 5 !important;
    width: 23%;
    height: auto;
}
}



Thanks

  • Replies 1
  • Views 316
  • Created
  • Last Reply

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.