Jump to content

 How do I force 2 Column text block for mobile?

Recommended Posts

  • Replies 7
  • Views 779
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...
  • 2 years later...
On 3/25/2023 at 8:39 AM, lovemcho said:

hi @tuanphan, would you be able to help me with a similar issue with a website i'm working on? i have two text blocks, but they also turn into a single column on mobile 😞 i tried to use the code you provided, but was unable to have it work. any help would be much appreciated!  

url: http://www.keikofukazawa.com/cvpress

Desktop:
image.thumb.png.0a649868ef6c77b3d437815b13160c50.png

Mobile:
image.thumb.png.992ecf7a2996b4037868264608baafc0.png

Add to Design > Custom CSS

@media screen and (max-width:900px) {
div#page-5884645f893fc0ce706914e1 .span-2 {
    width: 19% !important;
    float: left !important;
}
}

image.thumb.png.e0abfb227e0d4dfa7f3183f3e14c2001.png

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
On 3/29/2023 at 11:26 AM, lovemcho said:

thank you so much for your help and reply @tuanphan!! do you know if there's a way to make the text smaller on mobile view? though the columns are now side-by-side the line breaks in the copy are misaligned with the dates. ><"

Use this new code

@media screen and (max-width:900px) {
div#page-5884645f893fc0ce706914e1 .span-2 {
    width: 19% !important;
    float: left !important;
}
div#page-5884645f893fc0ce706914e1 * {
	font-size: 12px !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

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.