Hello Dear coders, I am not yet good at styling css form. Please i need help to make my form more professional thank you for help.
This is the HTML
and the css
the output
Thank you for your kind contribution!
Hello Dear coders, I am not yet good at styling css form. Please i need help to make my form more professional thank you for help.
This is the HTML
What do you mean by making forms look professional? Can you describe how you want them to look? Also make sure you are giving a link to your demo via codepen so we can checkout an actual page.
You are going good refer W3schoool for more Css effect and style
To keep the label align to left and the input field to right nicely
I see Bootstrap in your HTML. See getbootstrap/docs/4.0/components/forms/ There are Examples with elements of the form alignment.
No it is flexboxgrid
Your <input> is in <label>. I`d separate them.
Parent tag of your alignment elements must have display: flex;
<Fieldset> display: flex;
<label>
<input>
align it as you want! :) :smile:
Ok leme try that out.
Hi Vulkan12, display = flex worked fine with chrome and opera and very ugly with IE and firefox. Can there be a way to fix this? (Do mind i show you)
Hello! I think, this links will help you
https://css-tricks.com/using-flexbox/
https://dev.opera.com/articles/advanced-cross-browser-flexbox/#fallbacks
Thank you very much for the help.
I think placeholders are better if you want your input-fields to align properly without labels, or you can give your form a display of “flex” and "flex-direction: column; style your input fields with CSS properties like "border, border-radius, give it a padding and much more, haha. sorry for too much stories. i hope it helps.
yeah @japhheth it worked fine now
I like W3school very much - it helps me a lot