Jump to content

Stack images and text at certain breakpoints with CSS

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://www.artofair.ie/an-overview-of-air-to-air-heat-pumps

Hi everyone,

 

I am trying to get certain elements to stack sooner than Squarespace's default setting.

 

For this example, the image block and text block in the screenshot don't stack until the screen gets very small in width which, in my opinion, looks very messy.

 

Is there any way with CSS to make them stack sooner.

 

Any help would be greatly appreciated.

 

Thank you very much in advance.

 

Steve

Screenshot 2022-09-22 at 15.42.20.png

Link to comment
  • Solution

Add to Design > Custom CSS. This will make stack from 1024px or under

@media screen and (max-width:1024px) {
div#page-section-60c9cb17b3986b78c3d86529 .col {
    width: 100%;
}
}

 

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 10/7/2022 at 4:23 PM, SteveBarrett said:

Hi, Tuan.

 

Is there a way to make this happen only for certain images and text blocks within a section.

 

For example, on https://www.artofair.ie/heat-pumps-in-ireland, in the hero section, it happens for all elements in the section, but I would like it to happen for only the opening paragraph and text.

 

See screenshot for reference.

 

Thank you very much.

Screenshot 2022-10-07 at 10.22.15.png

You can move 3 border boxes to a new section

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...

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.