Jump to content

CSS for making portfolio pages with different aspect ratios

Go to solution Solved by tuanphan,

Recommended Posts

Hi,

I am looking to make the aspect ratios of one portfolio page different to another. Specifically, I would like the "Personal" page (which is at 2:3 at the moment) to be at the 16:9 aspect ratio, while keeping the "Commissions" page at the 2:3 ratio. Please advise on how this can be done? Thank you in advance. 

Screenshot 2024-01-23 at 18.38.32.png

Screenshot 2024-01-23 at 18.38.39.png

Link to comment
  • Replies 3
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

If you use a Business Plan/higher, you can use this code to Personal Page Header Code Injection

<style>
  /* portfolio 16:9 */
.grid-image {
    padding-bottom: 56.25% !important;
}
</style>

If your plan doesn't support Code Injection, you can share link to Personal Plan, we can help easier

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