adamsson Posted March 7, 2023 Share Posted March 7, 2023 (edited) I have a gallery block that contains only a video, and I'd like the thumbnail to fill the section vertically. Currently, Squarespace is adding padding to the top and bottom. If I inspect the section and change "--inset-padding: 0vw;" to "--inset-padding: 0;" the padding goes away, but I'm having problems getting the same result via CSS. See attached images. Edited March 7, 2023 by adamsson Link to comment
tuanphan Posted March 8, 2023 Share Posted March 8, 2023 Hi, Can you share link to this page? 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
adamsson Posted March 8, 2023 Author Share Posted March 8, 2023 https://gopher-dove-dhgd.squarespace.com/matt-dale password: lerners Link to comment
ed.design Posted March 9, 2023 Share Posted March 9, 2023 I am having the same issue. I have a gallery block that I would like to fill the entire section but there is extra padding above and below. Link to comment
tuanphan Posted March 10, 2023 Share Posted March 10, 2023 On 3/9/2023 at 1:07 AM, adamsson said: https://gopher-dove-dhgd.squarespace.com/matt-dale password: lerners Try adding to Design > Custom CSS /* fill section */ .fe-6408b937f1378f5967d3e203 { --inset-padding: 0 !important; } 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
adamsson Posted March 13, 2023 Author Share Posted March 13, 2023 On 3/10/2023 at 4:24 AM, tuanphan said: Try adding to Design > Custom CSS /* fill section */ .fe-6408b937f1378f5967d3e203 { --inset-padding: 0 !important; } That works! I will have 30 pages like this, each with two of these gallery blocks. Is there some way to avoid having 60 of these CSS blocks? Aside from changing the design? ed.design 1 Link to comment
tuanphan Posted March 15, 2023 Share Posted March 15, 2023 Use a code like this, it will target all sections with height 51% /* fill section */ [data-current-styles*='"customSectionHeight": 51'] .fluid-engine { --inset-padding: 0 !important; } 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
adamsson Posted March 15, 2023 Author Share Posted March 15, 2023 12 hours ago, tuanphan said: Use a code like this, it will target all sections with height 51% /* fill section */ [data-current-styles*='"customSectionHeight": 51'] .fluid-engine { --inset-padding: 0 !important; } Thank you! So close! I set the section height to 1% and made the corresponding CSS change, and it's almost perfect. There's still a small border at the top and bottom of the section. In the browser inspector, I can see that there's a calculation being run for the top and bottom padding: padding-top: calc(1vmax / 10); padding-bottom: calc(1vmax / 10); But my attempt at zeroing those out in the CSS failed. I'm guessing that I'm missing something? /* fill section */ [data-current-styles*='"customSectionHeight": 1'] .fluid-engine { --inset-padding: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; } Link to comment
tuanphan Posted March 17, 2023 Share Posted March 17, 2023 On 3/15/2023 at 9:50 PM, adamsson said: Thank you! So close! I set the section height to 1% and made the corresponding CSS change, and it's almost perfect. There's still a small border at the top and bottom of the section. In the browser inspector, I can see that there's a calculation being run for the top and bottom padding: padding-top: calc(1vmax / 10); padding-bottom: calc(1vmax / 10); But my attempt at zeroing those out in the CSS failed. I'm guessing that I'm missing something? /* fill section */ [data-current-styles*='"customSectionHeight": 1'] .fluid-engine { --inset-padding: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; } Try this /* fill section */ [data-current-styles*='"customSectionHeight": 51'] .content-wrapper { padding: 0 !important; } 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
adamsson Posted March 17, 2023 Author Share Posted March 17, 2023 18 hours ago, tuanphan said: Try this /* fill section */ [data-current-styles*='"customSectionHeight": 51'] .content-wrapper { padding: 0 !important; } That seemed to crush the image down to a sliver. Link to comment
tuanphan Posted March 20, 2023 Share Posted March 20, 2023 On 3/18/2023 at 3:53 AM, adamsson said: That seemed to crush the image down to a sliver. Which page are you referring to? 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
adamsson Posted March 20, 2023 Author Share Posted March 20, 2023 3 hours ago, tuanphan said: Which page are you referring to? Same page. Sorry, I reversed the change, it's back now. Link to comment
adamsson Posted March 22, 2023 Author Share Posted March 22, 2023 On 3/14/2023 at 10:32 PM, tuanphan said: Use a code like this, it will target all sections with height 51% /* fill section */ [data-current-styles*='"customSectionHeight": 51'] .fluid-engine { --inset-padding: 0 !important; } I went back to this original code, but it turns out that it caused significant issues with the editor elsewhere on the page, so I commented it out. Link to comment
tuanphan Posted March 25, 2023 Share Posted March 25, 2023 On 3/9/2023 at 1:07 AM, adamsson said: https://gopher-dove-dhgd.squarespace.com/matt-dale password: lerners Site url doesn't exist now. Can you check it again? 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
adamsson Posted March 27, 2023 Author Share Posted March 27, 2023 On 3/24/2023 at 10:03 PM, tuanphan said: Site url doesn't exist now. Can you check it again? New URL is https://lernerspi.squarespace.com/matt-dale. Link to comment
tuanphan Posted March 29, 2023 Share Posted March 29, 2023 On 3/27/2023 at 10:25 PM, adamsson said: New URL is https://lernerspi.squarespace.com/matt-dale. lerners On 3/22/2023 at 11:13 PM, adamsson said: I went back to this original code, but it turns out that it caused significant issues with the editor elsewhere on the page, so I commented it out. What is problem with this code? I just tried & see no problem here 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
ilseS Posted February 19 Share Posted February 19 Im having the exact same issue, same block configuration did the code above work? Thank you! Link to comment
tuanphan Posted February 19 Share Posted February 19 12 hours ago, ilseS said: Im having the exact same issue, same block configuration did the code above work? Thank you! If you share link to page where you have problem, we can take a look 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment