Hi all-- I’m trying to style my Survey Form project, and I can’t get the line behavior to work the way I want. Link to CodePen.
The first three inputs appear on a new line below their labels. Label and input are set to 100% width. But the select options should be set to 100% width as well, and they’re appearing inline. I tried specifying display: block to those elements, and it didn’t do any good. Also, the big list of checkboxes has gone horizontal rather than vertical. I could fix that with a flexbox, but I’m assuming there’s just an error in my formatting somewhere I should clean up?
@jeff-tillinghast from what I can see from your code, there’s a whole lot of errors in your code and that’s why it won’t align your radio group vertically !!
Thanks for joining in, @larrycode1. I am, of course, here because I realize that I have errors in my code. If you could be more specific, I might be able to fix them?
I removed the display: flex as per @spark07 's recommendations, and that fixed the immediate issues. Now I’m trying to clean up the vertical alignment on the checkboxes and radio elements, as they’re out of alignment. But you said that there are “a whole lot of errors in [my] code”-- If there are other issues that I’m not aware of, I’d love to know what you see so that I can fix it.
The error i’m seeing here is your value for the radio button is wrong and the class should be “input-radio” not inline as you stated…Lastly your input element should be wrapped inside your label element and add a line break to it to align it vertically