persephone Posted August 20 Share Posted August 20 I have a page with a form that has conditional fields (using JavaScript). The fields behave as expected but the form block still takes up the full amount of space even when the fields are hidden, creating a bunch of negative space. Using 'Inspect', I have determined that this space is not the result of padding or empty containers. It's empty flex grid space. The issue seems to stem from the fact that in 'Edit' view, JavaScript is disabled, so all the form fields are visible and therefore I cannot adjust the number of rows for the container to be smaller than the form when it is fully expanded. So then in the live view, when JavaScript is enabled and some fields are hidden, the flex container doesn't shrink to size and displays a bunch of empty rows. I do not have a lot of experience troubleshooting flex boxes so I'm not sure how to "override" the number of rows using custom CSS and would appreciate any guidance! Thank you so much. Site PW: cupid Link to comment
persephone Posted August 20 Author Share Posted August 20 Sorry, I put the page link where it indicated to do so but I can't see that it is actually visible anywhere on my post! The url is http://cupidsbacchanalia.squarespace.com/rsvp Link to comment
persephone Posted August 22 Author Share Posted August 22 I've tried using align-items, flex-shrink, etc. but nothing seems to work. Any ideas? Link to comment
persephone Posted August 22 Author Share Posted August 22 Having a similar issue on the home page, where I have containers containing paragraph text. The spacing on the top and bottom of the text is greater than on the sides. The latter responds to targeting padding (I don't want to change this), but the former appears to be empty flex box space + padding. It seems to respond initially to changing flex box styling via align-items, justify-items, gap, etc. However, when I switch to editor view, I still can't adjust the container height any smaller to actually even out the spacing (see attached photo). What I would like is for the space on the top and bottom to consist only of padding, so that the text is the same distance from the border on all sides. Link to comment
tuanphan Posted August 24 Share Posted August 24 You can consider using Classic Editor Section 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
persephone Posted August 31 Author Share Posted August 31 On 8/24/2024 at 2:22 AM, tuanphan said: You can consider using Classic Editor Section Hi there, This works to collapse the extra space but now the image in the second section is floating behind the first section. It seems to be a z-index issue but I thought putting the image in the subsequent section negated the need to fiddle with the z-index? Do you know why this is happening now? Link to comment
persephone Posted August 31 Author Share Posted August 31 (edited) 2 hours ago, persephone said: Hi there, This works to collapse the extra space but now the image in the second section is floating behind the first section. It seems to be a z-index issue but I thought putting the image in the subsequent section negated the need to fiddle with the z-index? Do you know why this is happening now? Additionally, it seems I can't control the size or masking of the image on a classic section, so I have to leave that in a fluid engine section. But I'm using a background image that I want to be continuous for everything under the first red section. The image is a paper texture so setting it to each section separately creates a seam. I tried Googling about this and only found solutions to apply a background to an entire website (I only want it on this page) or you told someone with my exact request previously to consolidate the sections, which obviously won't work in this case. Am I just screwed here? I've already redone this page like five different times and this is getting frustrating. It doesn't seem like that complicated of behavior. 😕 Edited August 31 by persephone Link to comment
persephone Posted August 31 Author Share Posted August 31 On 8/21/2024 at 9:36 PM, persephone said: Having a similar issue on the home page, where I have containers containing paragraph text. The spacing on the top and bottom of the text is greater than on the sides. The latter responds to targeting padding (I don't want to change this), but the former appears to be empty flex box space + padding. It seems to respond initially to changing flex box styling via align-items, justify-items, gap, etc. However, when I switch to editor view, I still can't adjust the container height any smaller to actually even out the spacing (see attached photo). What I would like is for the space on the top and bottom to consist only of padding, so that the text is the same distance from the border on all sides. Classic editor doesn't seem like it will work for this issue, either. I seem to have even less control over spacing between elements. 😕 Link to comment
tuanphan Posted September 2 Share Posted September 2 Do you still need help? I will check 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
persephone Posted September 2 Author Share Posted September 2 10 hours ago, tuanphan said: Do you still need help? I will check again Yes, please! Thanks so much. 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