Jump to content

Blog Post 2 Columns on Mobile

Recommended Posts

I'm trying to get a few images in a blog post to be in 2 columns on mobile.

I've successfully used this code on other blog posts like this one https://www.hvmc.sg/blog/christmas-peace (it's the profile photo at the end) to reduce the width of the top block and float it to the left so that the block below it comes up beside it (attached image).

width: 145px;
float: left;

But I can't get it to work on another post I'm doing. It's currently in draft so it's not live. But can anyone give me a generic code that I can modify for any blog post? This is what I tried but it didn't work:

#block-yui_3_17_2_1_1673946610225_4679, #block-yui_3_17_2_1_1673946610225_6394
  {
  width: 50% !important;
  float: left !important;
  }

The blocks do become 50% but remain vertically stacked i.e. they don't become 2 columns.

Hope you can understand without a live example!

Screenshot 2023-01-17 at 5.57.18 PM.png

Screenshot 2023-01-17 at 6.07.41 PM.png

👋 Michelle John
💕 
Catchafire volunteer 
🖥️ Web & graphic design for churches, nonprofits & small businesses

🔗 brambledesign.co

Bramble Design

Link to comment
  • Replies 1
  • Views 193
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Hard to tell without your website to look at. Have you tried changing the 50% to 45%, i.e. to take into account any potential padding that reduces the width to less than 100%.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.