Jump to content

Have a gallery section side-by-side with another section

Recommended Posts

https://www.karibuadventures.com/alta-valsesia

password: karibu2022

 

I have a gallery section next to a text block section with the help of the below css code, however on narrow screens it make the section below cut in half and jagged. Any help would be appreciated to make these two sections align perfectly and not affect the section below.

@media only screen and (min-width: 641px) {
  #collection-634893cc9a464a662fdca2b6 {
    #page .page-section:nth-of-type(5) { /*second second on the left*/
      width: 50%;
      min-height: 80vh;
      align-items: center;
      float: left;
    }
    #page .page-section:nth-of-type(6) { /*third section on the right*/
      width: 50%;
      min-height: 80vh;
      align-items: center;
    }
    #page .page-section:nth-of-type(4) { /* forth section full width again */
      clear: both;
    }
  }
}

Screen Shot 2022-11-22 at 3.15.41 PM.png

Link to comment
  • Replies 7
  • Views 465
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Hi Wolfsilon, thank you for the quick response. The max height seems to have helped the other pages, but this page still is wonky - no matter how high I set the height to, it still does this (see attached). I think the reason why this page isn't looking great is that the amount of words next to the gallery is longer than the other pages. If I cannot convince my client to reduce the copy, do you have any other ideas? Thanks again!

Screen Shot 2022-11-23 at 11.27.27 AM.png

Link to comment
  • 1 month later...
On 1/20/2023 at 4:52 AM, tkk said:

I'm having the same problem! I wish squarespace would have a template for gallery next to text!

@m10ki Did you every figure it out?

If you share link to page where you added gallery, we can give code to do this

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.