Checkboxes in a Layout Grid weird issue
Posted: Fri Oct 04, 2024 3:17 am
I have a strange behavior with checkboxes that I hope somebody can me clues as to what to do.
I have a form in a LayoutGrid which has some input elements including a checkbox list of 10 options. The list is PHP generated and I cannot really post a sample page online yet. The checkboxes are displayed using a custom CSS. The form works fine, it has no errors, no flags of any kind. The strange problem is that I can't hover and select the checkboxes of options 6-9! I can hover over the checkboxes of options 1-5 and 10, no problem. There seem to be an offset for options 6-9 because if I hover to the left of the labels on those lines, i can chekmark the boxes!!!
Note that if I move the code outside the LayoutGrid, ALL checkboxes work perfectly. So I know the issue isn't with the PHP code or the HTML form or the CSS code. I can also run the same code in a blank HTML page and it works just fine. Something in the LayoutGrid format is causing an offset for a few lines that happen to coincide with the checkboxes 6-9. I checked the page source code in the browser and nothing hidden gets added to the form at that point.
My question is what could cause that? How do I even begin to troubleshoot this? Thanks for any clues and advise.
PS: I should add that if I shrink the window (and trigger a breakpoint), ALL options work fine, no more offset for options 6-9! Weird.
JD
I have a form in a LayoutGrid which has some input elements including a checkbox list of 10 options. The list is PHP generated and I cannot really post a sample page online yet. The checkboxes are displayed using a custom CSS. The form works fine, it has no errors, no flags of any kind. The strange problem is that I can't hover and select the checkboxes of options 6-9! I can hover over the checkboxes of options 1-5 and 10, no problem. There seem to be an offset for options 6-9 because if I hover to the left of the labels on those lines, i can chekmark the boxes!!!
Note that if I move the code outside the LayoutGrid, ALL checkboxes work perfectly. So I know the issue isn't with the PHP code or the HTML form or the CSS code. I can also run the same code in a blank HTML page and it works just fine. Something in the LayoutGrid format is causing an offset for a few lines that happen to coincide with the checkboxes 6-9. I checked the page source code in the browser and nothing hidden gets added to the form at that point.
My question is what could cause that? How do I even begin to troubleshoot this? Thanks for any clues and advise.
PS: I should add that if I shrink the window (and trigger a breakpoint), ALL options work fine, no more offset for options 6-9! Weird.
JD