Izabellabuzogany Posted April 10, 2023 Share Posted April 10, 2023 (edited) Is there any way to size images and videos to be the exact height of a section? I'm trying to make the website look cleaner and more responsive by removing the gaps between the content and the edge of its respective section. I input some custom code I found on the forums to re-size videos, however, I'm still getting gaps between sections. Especially across browsers and device sizes. I've attached screenshots below. Website link: https://mj-photo.squarespace.com/ Password: Madeline The issue is very noticeable among images and videos on the home page. Any insight is appreciated!! Edited April 10, 2023 by Izabellabuzogany Link to comment
tuanphan Posted April 11, 2023 Share Posted April 11, 2023 With Campaign 360 section, try adding this to Design > Custom CSS .fe-642aee39d8daa5103bf5a3fd { row-gap: 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
Izabellabuzogany Posted April 11, 2023 Author Share Posted April 11, 2023 (edited) @tuanphan Thank you! That helped the video from re-sizing in on different browsers and device sizes however there is still a small gap below the video. Any ideas on how to remove this? I tried to play around with fluid engine spacing but it would not work. Edited April 12, 2023 by Izabellabuzogany Link to comment
Solution VisualNotes Posted April 12, 2023 Solution Share Posted April 12, 2023 (edited) I was able to place images in multiple sections with background colors with no gap at all. However, this only works if you have disabled the "Fill screen" option for these sections. This is because the minimum value for fill screen height is always 1 and not 0. In your case this might be the cause for that small gap that is visible between the edge of the image and the edge of the section. If not, I suppose it's a custom CSS issue. I just saw that you can set the height value to 0 by typing, then even with the fill screen option enabled the gaps are gone. Edited April 12, 2023 by VisualNotes Sceenshot added. Link to comment
Izabellabuzogany Posted April 13, 2023 Author Share Posted April 13, 2023 @VisualNotes Thank you! That worked perfectly. I now only have a slight gap below the video but I believe that will be a custom CSS fix. Link to comment
VisualNotes Posted April 13, 2023 Share Posted April 13, 2023 Upon further investigation, I saw that the reason for the remaining gap below the video is an inline style that SQ puts in here which is inexplicable to me. It even needs the !important property for the custom CSS rule to eliminate the issue: .embed-block-wrapper {padding-bottom: 0 !important;} Link to comment
VisualNotes Posted April 13, 2023 Share Posted April 13, 2023 (edited) Which btw doesn't mean that a gap doesn't come back on tablet width... I'm experiencing still a small gap on screen sizes between 768px and 1500px This is where my love for Squarespace is severely tested... Edited April 13, 2023 by VisualNotes 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