Jump to content

Trouble with responsive design with custom code

Go to solution Solved by Ziggy,

Recommended Posts

Hi,

I hope someone can help. I have created a row flip cards acting as an about us section with the front being an image and the back telling us a little bit about the person and it hosts the social icons and contact details etc. The trouble I seem to be having is when I get to different screen sizes it all goes a bit wonky until we get to mobile view. I have some knowledge in html and CSS but really struggle with understanding how to make it responsive so that it works on all screen sizes. I wonder if someone would be able to help find the solution to it.

The scree sizes that this works is:

2560 x 1440
1920 x 1080
1680 x 1050

I start running into trouble from screen width 1440 till about 768...

here is the link:

https://www.cps.scot/home-test

Password:

cps-test-2023

Thank you in advance.

Link to comment
  • Solution

Instead of placing each card in a separate code block, could you place each within a single code block set up as a flex grid? That way you can control the way that they stack on different screen sizes and you should still be able to get the offset look with nth-child(even) and a margin-top value. 

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

Link to comment

Looks great!

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

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.