Jump to content

How to force Image Cards to keep text on right (rather than stacking below)

Recommended Posts

Site URL: https://grapefruit-rectangle-py2e.squarespace.com/our-team

Hi All,

I'm currently tying to get the 'our team' section of our website working as intended, and the behaviour at some screen sizes is not ideal.

What I want is for a small headshot photo to be on the left of the name and title at essentially all screen sizes (at the very smallest, I do think it would be better stacked underneath, but could live without this)

Currently, the setup I have, which uses 'Image cards', works perfectly on a large desktop window but on mobile or if shrinking the window width, certain sizes by default result in a much larger photo being displayed, with the name and title underneath. I've fixed this with 'width: 25%', but that does not restore the correct position of the text.

 

Is there a way of locking the behaviour of the image card, so that squarespace is forced to switch from two columns to one first, and not move the names and titles off the same row as the picture until there is no other way to display everything?

 

https://grapefruit-rectangle-py2e.squarespace.com/our-team

website password: dmgproperty

 

Any advice would be greatly appreciated!

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

Top Posters In This Topic

Top Posters In This Topic

Add to Design > Custom CSS

@media screen and (max-width:767px) {
.image-block {
	.intrinsic {
    width: 25% !important;
    float: left !important;
}
figcaption.image-card-wrapper {
    width: 70% !important;
    margin-left: 5% !important;
    float: left !important;
}

figure:after {
    content: "";
    clear: both !important;
    display: table;
}
}
}

 

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.