Jump to content

Responsive Code Block

Go to solution Solved by Ziggy,

Recommended Posts

Can you share your website URL and this page?

In what way do you want the table to be responsive? Stacking all of the cells in each row?

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
5 hours ago, serhan said:

At the moment, it's cutting out the last row. Ideally, I want to have it all visible. 

The only practical way of doing that would be on mobile to make the font size smaller and responsive to the page width and the padding narrower, but this would impact legibility.

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
  • Solution
8 hours ago, serhan said:

Would you be able to assist with that code? 

Sure, add this below the rest of the table styling:

@media only screen and (max-width:640px) {
  table.unstyledTable thead th {
    font-size: 3vw;
    line-height: 1.2em;
    vertical-align: bottom;
  }
  table.unstyledTable tbody td {
    font-size: 3vw;
    line-height: 1.2em;
  }
}

Let me know how that goes.

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.