Custom Gallery Layouts with CSS Grid in Squarespace

Поделиться
HTML-код
  • Опубликовано: 4 фев 2025

Комментарии •

  • @carrieweyand7980
    @carrieweyand7980 4 года назад

    Nailed it! THank you, first time diving into SquareSpace and after figuring out I was adding an extra space in one section, I got it all to work. Thank you!!

  • @thom5443
    @thom5443 4 года назад +6

    Thank you for the tutorial, very interesting. For anyone trying in 7.1 I got it to work using .gallery-grid-wrapper and figure:nth-of-type(x). In .gallery-grid-wrapper add grid-template-columns: none !important; to override the grid layout set by Squarespace.

    • @LisaSims
      @LisaSims 3 года назад +1

      Hi, I almost got it to work by following your steps. But I can get it to work - under grid-template-columns: i should add none: (?) or smth else. Should it be also grid- column: small1; rather than grid-area: small1; ? thakyouuu

    • @MatiasConti
      @MatiasConti 5 месяцев назад

      I dont want to update to 7.1 still on 7.0. Trying to add more grid pictures to my site, but is not working anymore. It simple doesn't do anything :(

  • @gemmavendetta9245
    @gemmavendetta9245 4 года назад

    🤗 Easy to follow - really awesome video, thank you!

    • @SEWebDesign
      @SEWebDesign  4 года назад +1

      I'm glad you liked it Gemma!

  • @sineadeasdon8472
    @sineadeasdon8472 5 лет назад

    Chris! This is so amazing! I tried to create something like this for a footer idea I had about six months ago and failed so terribly 😅So looking forward to getting to use this on another project soon. Thank you for sharing your brain with us!

  • @rebelandromantic
    @rebelandromantic 5 лет назад +1

    Omg! I've been looking for this!

    • @SEWebDesign
      @SEWebDesign  5 лет назад

      Awesome! So glad it will help!

  • @ajchapman616
    @ajchapman616 4 года назад +2

    Can you do an updated tutorial for 7.1?

  • @elijahaaron
    @elijahaaron 4 года назад

    hey brother. How would I bypass the image resizing parameter that my Squarespace store forces on item pictures? I have a great zoom script running but i'm not getting much out of it because the store page is downsizing my images.

    • @SEWebDesign
      @SEWebDesign  4 года назад

      Hi Elijah, I'm sorry I am not sure about that one! The resizing is handled by javascript and I am not an expert at that yet.

  • @aprilpowell6672
    @aprilpowell6672 2 года назад

    Would i be able to add more images into this when done as using it for my portfolio page so would want too add to it as time goes on

    • @SEWebDesign
      @SEWebDesign  2 года назад

      This CSS is for a set number of items, but CSS grid can be used to create layouts like this for unlimited numbers of items.

    • @aprilpowell6672
      @aprilpowell6672 2 года назад

      Okay cool thanks, do you have any advice on best way to do this? Can I do it with a gallery index still? As I want to tag my images and you can’t do this image blocks add a tag on them

    • @SEWebDesign
      @SEWebDesign  2 года назад

      @@aprilpowell6672 you can hire me to write the CSS for you through my website if you would like

  • @theglowmethod
    @theglowmethod 4 года назад

    Love this! Thank you! I have 11 thumbnails in the gallery I'm working on and I was wondering if it is possible for the remaining to be hidden under a "show more button?

    • @SEWebDesign
      @SEWebDesign  4 года назад +1

      Hi Kaylie, unfortunately I don't know of a way that could be accomplished. It would definitely require jQuery though and could not be done solely with CSS.

    • @theglowmethod
      @theglowmethod 4 года назад +1

      @@SEWebDesign Okay!! I think I figured out another solution. Thank you so much for these videos they're life-saving!

  • @matiasconti7264
    @matiasconti7264 4 года назад

    Nice! I managed to make it work now, thanks :) One more question, how can I add the hover effect? Zoom/fade to black/text show up. I think that makes it much more dynamic! Thanks mate

  • @brigidcampbell9128
    @brigidcampbell9128 4 года назад +3

    Hey, thanks so much for this video. Would you know how to apply this to Squarespace 7.1? I am working with this ( virginsuncare.com/ingredients ) but I am having trouble aligning the bottom of these individual image blocks.

    • @SEWebDesign
      @SEWebDesign  4 года назад

      This was for the index gallery in brine 7.0 so I dont think you can apply it to regular image blocks in 7.1.

    • @SusanneGeert
      @SusanneGeert 4 года назад +3

      @@SEWebDesign I would like to know a similar solution to version 7.1 as well;-)

  • @nathanjamesparker
    @nathanjamesparker 4 года назад

    could I somehow us this to approach centering my product page and related product section galleries? For example: Row 1 - 3 items, Row two(incomplete row) has 2 items. I'm trying to center the images in the container instead of them being left aligned.

    • @SEWebDesign
      @SEWebDesign  4 года назад +1

      I don't think this would be the best solution for that to be honest, it would be complex and probably overkill. This works very specifically on the index gallery because of its structure but I wouldn't recommend CSS grid for all cases.
      For simple centering flexbox would probably work better.

  • @franciscomendoza1633
    @franciscomendoza1633 4 года назад

    How would you determine optimal image sizes to fit within gird sections? If I have a collection of same sized images and place 3 into a 5 column grid "image1 image1 image1 image2 image3" then image 2 and 3 end up pretty cropped.

    • @SEWebDesign
      @SEWebDesign  4 года назад +1

      Yeah you would want to place the images based on aspect ratio. So the images you place in the big Squares would need to be taller than the images in the smaller squares.

  • @Iamnickrobertson
    @Iamnickrobertson 4 года назад

    Can this same method be used for non image based layouts? Like say I had 3 images blocks and 4 text blocks i wanted to do this with?

    • @SEWebDesign
      @SEWebDesign  4 года назад +1

      Css grid relies on a parent container to become the grid and the children items to become the grid items. So yes, theoretically each block element in a row could become grid elements within the row's grid.

    • @Iamnickrobertson
      @Iamnickrobertson 4 года назад

      @@SEWebDesign It does!!!!!!
      wildeyedcreativeco.squarespace.com/css-grid
      Only thing cant figure out is how to make something 3 columns wide. I want the text to be 1 more column wide but when i add another column it all explodes haha.

  • @goosefeather7654
    @goosefeather7654 5 лет назад

    I don't understand how you created this in the first place. I also cannot find index gallery in my site styles. Do you first create a Gallery page in "not-linked" then add that gallery to the index page? Or do you add the gallery index box?

    • @SEWebDesign
      @SEWebDesign  5 лет назад

      I am using the Brine template where galleries are an option you can add to index pages.

    • @goosefeather7654
      @goosefeather7654 5 лет назад

      Thank you so much. I figured it out and am making decent progress. Just can’t figure out how to not have to list certain articles in my grid for mobile now. Any advice on that is helpful and greatly appreciated!

  • @abbyw6945
    @abbyw6945 5 лет назад

    How would you go about adding more columns or rows? It seems like the default number of rows is 3.

    • @SEWebDesign
      @SEWebDesign  5 лет назад

      In this video I have 4 columns and three rows. You should be able to add more of each by laying them out in the CSS. Is it not working for you?

    • @abbyw6945
      @abbyw6945 5 лет назад

      @@SEWebDesign Would I use grid-template-rows and grid-template-columns to do that?

    • @SEWebDesign
      @SEWebDesign  5 лет назад

      @@abbyw6945 you will need to map them out under grid-template-areas

  • @goncalocarvalho6914
    @goncalocarvalho6914 4 года назад

    Hello my friend! You are truly an inspiration, I'm trying to adapt this index gallery into my website but i cant do it. Is it possible to send me a little bit of the CSS that you created? thank you so much. Continue the great videos :)

    • @SEWebDesign
      @SEWebDesign  4 года назад

      This was written specifically for the 7.0 brine template, so if you are using a 7.1 template then this will not work. Unfortunately I no longer have the CSS, This was more to show what is possible than a tutorial.

  • @orionfilms2835
    @orionfilms2835 4 года назад

    Does it works with gallery grid block?

    • @SEWebDesign
      @SEWebDesign  4 года назад

      This code is specifically for index galleries, but the same logic could be applied to gallery blocks. The classes would just need to be tweaked

  • @donnatapay923
    @donnatapay923 4 года назад

    Is this applicable to 7.1?

    • @SEWebDesign
      @SEWebDesign  4 года назад

      This was written specifically for the Brine 7.0 template.

    • @donnatapay923
      @donnatapay923 4 года назад

      @@SEWebDesign do you have a similar tutorial for 7.1?

    • @SEWebDesign
      @SEWebDesign  4 года назад

      @@donnatapay923 unfortunately I do not at this time. I might plan something for the future. If you need immediate help, you can schedule a 1:1 training through my website!

    • @donnatapay923
      @donnatapay923 4 года назад

      @@SEWebDesign thanks! I will do.

  • @thechoosen4240
    @thechoosen4240 3 года назад

    pls source code