Jump to content

Put text blocks side by side on mobile

Recommended Posts

Site URL: https://mmschristy.squarespace.com/

Hey! In 7.1 I've added two text blocks side-by-side on the footer of a website. On desktop it looks great, but on mobile the blocks stack on top of each other. How do I make them keep their columns? website: https://mmschristy.squarespace.com/  pw 1234

Link to comment
On 7/14/2020 at 11:57 PM, tuanphan said:

@media screen and (max-width:767px) { div#page-section-5f0d09240e6abf13b062e85c>.row:nth-child(2)>.col:nth-child(2) { width: 70% !important; float: left !important; } }

Thank you so much TuanPhan! forgive me, as I wasn't clear on which row I wanted to keep the columns, it's the last row - i want the copyright line and the fb social media logo to both appear side by side. I adjusted your code to reflect that section, but it's no longer working. Can you help me out again? thanks!!

Link to comment
17 hours ago, yazzi said:

Thank you so much TuanPhan! forgive me, as I wasn't clear on which row I wanted to keep the columns, it's the last row - i want the copyright line and the fb social media logo to both appear side by side. I adjusted your code to reflect that section, but it's no longer working. Can you help me out again? thanks!!

Add to Home > Design > Custom CSS

@media screen and (max-width:767px) {
div#page-section-5f0e2c3a069a674c05a71509>.row {
    display: flex;
    align-items: center;
}
}

 

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
  • 4 months later...
6 hours ago, itsquitenice said:

Hi Tuanphan, I used the same code structure for the next links on my project pages, but when it's mobile it doesn't maintain the text alignment in desktop.

 https://khaki-orchid-mscf.squarespace.com/ (please look at the first project specifically) PSWD: 1234

Screen Shot 2020-11-21 at 8.32.19 PM.png

Screen Shot 2020-11-21 at 8.32.09 PM.png

Add to Home > Design > Custom CSS

div#page-section-5fb5a5fd9a71ab326a2ee641>.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

 

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
  • 2 weeks later...
On 11/23/2020 at 12:34 AM, penpen said:

Thanks Tuan, when I used that code it center aligns the text in mobile, is there a way to keep "Previous" left aligned and "Next" right aligned, just like how it is in desktop"

Thank you

 

 

Screen Shot 2020-11-21 at 8.32.09 PM.png

Screen Shot 2020-11-22 at 12.35.27 PM.png

Hi. Do you still need help on this?

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
  • 10 months later...
On 10/11/2021 at 4:29 AM, Nico_Burrito said:

Hello @tuanphan I'm also trying to do the same thing. I have 2 text blocks next to each other under one image (looks great on desktop) and I'd like to keep them next to each other on mobile, would that be possible?

attaching screenshot of the section below

https://shallot-flatworm-fyc8.squarespace.com

pw: nico

Screen Shot 2021-10-10 at 2.27.12 PM.png

Try adding to Design > Custom CSS

@media screen and (max-width:767px) {
div#page-section-616257219e24356e78a7e7c4 .span-6 {
    width: 50% !important;
    float: left !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
On 10/13/2021 at 12:21 AM, tuanphan said:

Try adding to Design > Custom CSS

@media screen and (max-width:767px) {
div#page-section-616257219e24356e78a7e7c4 .span-6 {
    width: 50% !important;
    float: left !important;
}
}

 

hello @tuanphan that didnt work, this keeps 2 images on 1 row on mobile.

I would like to keep 1 image per row on mobile just like it is now, but also keep the 2 text blocks below the image next to each other, not 2 text blocks under each other. (attached below is the problem)

Screen Shot 2021-10-14 at 1.18.43 PM.png

Link to comment

web page - https://disc-cone-hl9f.squarespace.com/giffgaffbigswim

pw : kinglear

 

Hi.

 

Is there a way to do this without specifically selecting a page element id?

I have a similar issue on this page, but I'm going to have to duplicate this page quite a few times for different pieces of work and wanted to avoid having to locate the block id for each page if possible?

Edited by kinglear
Link to comment
On 10/21/2021 at 10:30 PM, kinglear said:

web page - https://disc-cone-hl9f.squarespace.com/giffgaffbigswim

pw : kinglear

 

Hi.

 

Is there a way to do this without specifically selecting a page element id?

I have a similar issue on this page, but I'm going to have to duplicate this page quite a few times for different pieces of work and wanted to avoid having to locate the block id for each page if possible?

Hi,

I don't see text blocks on this page? https://disc-cone-hl9f.squarespace.com/giffgaffbigswim

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

Sorry, @tuanphan should have been clearer, it's actually code blocks containing text.

 

This is how it is on desktop view 

1322050105_Screenshot2021-10-25at10_10_24.thumb.png.f9a7915395e47897085f5cd7d9fd1bed.png

 

And on mobile - 

1401119545_Screenshot2021-10-25at10_10_33.png.a872cfdc8ebf79b6747513c6fbbda65c.png

 

I'd love for the Giff Gaff block to appear next to block (but still right aligned) with the Agency credits in.

 

Like this mockup - 

30370039_IdealLayout.jpg.e9e57c3f9f37c11b817e346a386a0b16.jpg

 

Have tried variations of the codes above but can't figure it out.

Like I say, once I have this fixed I need to duplicate this page many time over to account for all the other peices of work, so any simple way of doing this would be appreciated.

If it is a case of id'ing the specific block then that's cool.

 

Many thanks in advance!

Edited by kinglear
Link to comment
  • 3 weeks later...
On 11/14/2021 at 9:43 AM, chikacreative said:

@tuanphan I too am trying to make the footer text on my mobile site side by side. I am not haven't any luck. Would you please be able to assist me as well? Site: https://dahlia-beauty-bar.squarespace.com/ 

What is access password?

accesspasssword.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 11/14/2021 at 9:43 AM, chikacreative said:

@tuanphan I too am trying to make the footer text on my mobile site side by side. I am not haven't any luck. Would you please be able to assist me as well? Site: https://dahlia-beauty-bar.squarespace.com/ 

Add to Design > Custom CSS

/* Mobile footer */
@media screen and (max-width:767px) {
div#page-section-618ec06bb6078011c1b7db4b .span-9>.row>.col:nth-child(-n+2) {
    width: 40% !important;
    float: left !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.