Jump to content

Blocks not in a row in mobile view

Recommended Posts

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

Edited by hasher22
Link to comment
  • Replies 1
  • Views 266
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

It seems that you 've figured out, doesn't it?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

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.