However, when I add the “netlify” to the form element, the formatting is changed. One of the fields drops to the next line, and the next field is stretched, like the bottom.
Why is this happening? When I remove the “netlify” from the HTML, the form looks the way it’s supposed to, but then I obviously can’t receive form submissions. How can I fix this?
Hi @CardboardFoxDigital, Netlify does not change your form’s formatting/styling.
There must a problem with how your CSS is loaded.
If possible can you share a repository of your site or a link to site for me to help with the debugging.
Hi @CardboardFoxDigital, thanks for sharing your repository.
Took a look at your code and it seems you used Bricks editor
The reason why the Project Budget input is not inline with the How Did You Hear About Us input is because the width of the How Did You Hear About Us input is 95%.
Kindly change the width to 45% or use the Bricks editor since the other inputs width is 45%
First off, thanks for looking through the code. I don’t know why it’s the case, but the problem looks like a weird mislabeling issue. On my live server on VSCode, upon inspection, that field is the 6th child. When it’s uploaded, it becomes the 6th. So, I just have to premptively edit that, I guess. That’s kind of annoying, but no big deal. That’s odd how everything looks like it should when I remove the “netlify” attribute. Does that push the children or something?
When Netlify parses the static HTML for a form you’ve added, the build system automatically strips the data-netlify="true" or netlify attribute from the <form> tag and injects a hidden input named form-name . In the resulting HTML that’s deployed, the data-netlify="true" or netlify attribute is gone, and the hidden form-name input’s value matches the name attribute of <form> like this: <input type="hidden" name="form-name" value="contact">