thefakedaniel Posted April 4, 2022 Posted April 4, 2022 Site URL: https://bonjrmusic.com/store-select Hi, Could someone help me with the design of this page? I would like to have all the image blocks be the same dimensions as well as have the elements adapt to different window sizes. Appreciate any help I can get! Best, Daniel
Beyondspace Posted April 5, 2022 Posted April 5, 2022 23 hours ago, thefakedaniel said: Site URL: https://bonjrmusic.com/store-select Hi, Could someone help me with the design of this page? I would like to have all the image blocks be the same dimensions as well as have the elements adapt to different window sizes. Appreciate any help I can get! Best, Daniel I check that the layout is the same with the breakpoint equal to 768px and larger With the smaller breakpoint (<=767px), the layout will arrange with one column. You mean set this page the same layout when breakpoint is lower than 767px, don't you? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
thefakedaniel Posted April 5, 2022 Author Posted April 5, 2022 (edited) 5 hours ago, bangank36 said: I check that the layout is the same with the breakpoint equal to 768px and larger With the smaller breakpoint (<=767px), the layout will arrange with one column. You mean set this page the same layout when breakpoint is lower than 767px, don't you? Hi, thanks for getting back to me! Basically this is what I want for every size possible before it gets to tablet/mobile: And once it hits mobile, it changes to this (this already happens): I'd also like every image to have equal dimensions. Let me know if this clarifies everything! Edited April 5, 2022 by thefakedaniel
Beyondspace Posted April 6, 2022 Posted April 6, 2022 I check that you are using the image blocks and drag them into 2 columns I think we drag them into only one column. After that using some Css code to make items equally. Gallery section is also a alternative solution BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
thefakedaniel Posted April 6, 2022 Author Posted April 6, 2022 (edited) 13 hours ago, bangank36 said: I check that you are using the image blocks and drag them into 2 columns I think we drag them into only one column. After that using some Css code to make items equally. Gallery section is also a alternative solution Sorry, I didn't understand what you mean. Could you clarify? And what would this CSS code look like? Also as you see in my examples, I would like to have 2 columns and 2 rows until the screen is reduced to the point where it is forced to become 1 column and 4 rows. Edited April 6, 2022 by thefakedaniel
tuanphan Posted April 11, 2022 Posted April 11, 2022 On 4/6/2022 at 8:39 PM, thefakedaniel said: Sorry, I didn't understand what you mean. Could you clarify? And what would this CSS code look like? Also as you see in my examples, I would like to have 2 columns and 2 rows until the screen is reduced to the point where it is forced to become 1 column and 4 rows. You mean same height? 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!)
thefakedaniel Posted April 11, 2022 Author Posted April 11, 2022 (edited) 13 hours ago, tuanphan said: You mean same height? I guess so, equal height & width (16:9 maybe). At the moment on the website you can see they're all different sizes and not lining up properly. Edited April 11, 2022 by thefakedaniel
Solution Web_Solutions Posted April 11, 2022 Solution Posted April 11, 2022 (edited) Please see the video. You can try this way [data-section-id=""] { .gallery-grid-item{ overflow: hidden; position: relative; .gallery-grid-image-link:before { content: ""; position: absolute; top: 0; left: 0; bottom: 0; right: 0; z-index: 999; } img{ -webkit-filter: grayscale(80%); -moz-filter: grayscale(80%); -ms-filter: grayscale(80%); -o-filter: grayscale(80%); transition-duration: .7s; } .gallery-caption{ opacity: 0; position: absolute !important; max-width: 100% !important; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; transition-delay: 100ms; .gallery-caption-wrapper{ width: 80% !important; height: auto !important; p{ color: #fff !important; font-family: Work Sans; font-weight: 700; font-style: normal; letter-spacing: .01em; text-transform: none; text-align: center; line-height: 1.032; font-size: calc((4.5 - 1) * 1.2vw + 1rem); } } } } .gallery-grid-item:hover { img{ -webkit-filter: grayscale(0%); -moz-filter: grayscale(0%); -ms-filter: grayscale(0%); -o-filter: grayscale(0%); transform: scale(1.13); } .gallery-caption{ opacity: 1; } } @media(max-width: 767px) { .gallery-grid-wrapper{ grid-template-columns: inherit !important; } .gallery-grid-item { img{ -webkit-filter: grayscale(0%) !important; -moz-filter: grayscale(0%) !important; -ms-filter: grayscale(0%) !important; -o-filter: grayscale(0%) !important; transform: scale(1) !important; } .gallery-caption{ opacity: 1; .gallery-caption-wrapper p{ font-size: 40px; } } } } } Video_2022-04-11_141531.mp4 Edited April 11, 2022 by Web_Solutions Kobir, Create_Job, Ainul and 1 other 3 1 If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible.
thefakedaniel Posted April 11, 2022 Author Posted April 11, 2022 8 hours ago, Web_Solutions said: Please see the video. You can try this way [data-section-id=""] { .gallery-grid-item{ overflow: hidden; position: relative; .gallery-grid-image-link:before { content: ""; position: absolute; top: 0; left: 0; bottom: 0; right: 0; z-index: 999; } img{ -webkit-filter: grayscale(80%); -moz-filter: grayscale(80%); -ms-filter: grayscale(80%); -o-filter: grayscale(80%); transition-duration: .7s; } .gallery-caption{ opacity: 0; position: absolute !important; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; transition-delay: 100ms; .gallery-caption-wrapper{ width: 80% !important; height: auto !important; p{ color: #fff !important; font-family: Work Sans; font-weight: 700; font-style: normal; letter-spacing: .01em; text-transform: none; text-align: center; line-height: 1.032; font-size: calc((4.5 - 1) * 1.2vw + 1rem); } } } } .gallery-grid-item:hover { img{ -webkit-filter: grayscale(0%); -moz-filter: grayscale(0%); -ms-filter: grayscale(0%); -o-filter: grayscale(0%); transform: scale(1.13); } .gallery-caption{ opacity: 1; } } @media(max-width: 767px) { .gallery-grid-wrapper{ grid-template-columns: inherit !important; } .gallery-grid-item { img{ -webkit-filter: grayscale(0%) !important; -moz-filter: grayscale(0%) !important; -ms-filter: grayscale(0%) !important; -o-filter: grayscale(0%) !important; transform: scale(1) !important; } .gallery-caption{ opacity: 1; .gallery-caption-wrapper p{ font-size: 40px; } } } } } Video_2022-04-11_141531.mp4 18.55 MB · 0 downloads This might be what I'm looking for. Going to try it out and mark as solved if it works out, thanks!
Web_Solutions Posted April 11, 2022 Posted April 11, 2022 Sure Unique_Website, Create_Job and Ainul 2 1 If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible.
thefakedaniel Posted April 11, 2022 Author Posted April 11, 2022 (edited) 2 hours ago, Web_Solutions said: Sure Awesome, it worked. Although I think the text isn't exactly centered: This and I'm currently looking at the code to see where I can change the font size, hopefully I can find it. Update: I found where I can change the font size. And also added some padding to move the text more to the center... not sure why it wasn't centered for me in the first place. padding-left:70px; Edited April 11, 2022 by thefakedaniel
thefakedaniel Posted April 11, 2022 Author Posted April 11, 2022 (edited) Ok so turns out the padding is actually useless because the text position appears to depend on the window/screen size:Full-screen Windowed Mobile Edited April 11, 2022 by thefakedaniel
Web_Solutions Posted April 11, 2022 Posted April 11, 2022 I have update the code. I have marked that. Please add this then the caption will be exact center. Ainul, Unique_Website and Create_Job 3 If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible.
thefakedaniel Posted April 12, 2022 Author Posted April 12, 2022 (edited) 1 hour ago, Web_Solutions said: I have update the code. I have marked that. Please add this then the caption will be exact center. Perfect, it's working great. I just marked your post as the solution. Do you have any suggestions on how to move content from one page to another without having to remake it? i.e. if I wanted to move the carousel I have on the 'home' page somewhere else, what would be the easiest way to do so? But other than this question, thanks for helping me out with everything! Edited April 12, 2022 by thefakedaniel
Web_Solutions Posted April 12, 2022 Posted April 12, 2022 This option is not currently available in Squarespace Ainul, Create_Job and Unique_Website 3 If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible.
thefakedaniel Posted April 14, 2022 Author Posted April 14, 2022 On 4/12/2022 at 6:17 AM, Web_Solutions said: This option is not currently available in Squarespace Gotcha, thanks! If you're looking to help out some more, I have two other posts I made recently with no replies yet 😉 All the best! Daniel
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment