This is my second project. I did yesterday it using flexbox: https://codepen.io/supuun/pen/wXpogE?editors=1100
Any feedback is welcome
Also how can I make all thee text inputs to use same width. I can’t figure it out myself.
Mah dude! The design is great, love it so much. perfect.
Beside layout is working and functional, but I think this could be better, especially for mobile.
I suggest you go with less margin/padding from screen edge for containers in mobile view.
There is also some space between radio and its label text, I think the space is a little too much.
Good to take as template.
Keep goin on great work, happy programming.
If you manage to give same advance for text labels(name, email, number), so text fields will have same width.
Try a grid like layout for it, it works indeed.
do you mean the purple stuff on the edges?
For instance check this layout which is kind of template for survey form just like what you did too.
Please don’t judge me by my design, I’m not UI/UX dev, but please see how layout is responsive and functioning for different screen sizes.
Hope it helps
Also I can’t understand this part. What does advance mean. width? I’m not a native speaker, sorry. Also how can I set a paragraph tag or in this case labels tag width automatically according to the content.
Nice example. Doesn’t look that bad
Yes, sorry. some devs call width and height advance.
Label by default is a text(inline) content, so browser gives enough space it needs. But seems one label (e.g. name) could be smaller than another label (e.g. number) , so the rest space for textfield will be less or more and it makes it no so sync in page layout.
You may use grid for this section, check this sampel for instance which is responsive and gives you the grid/table layout you need.
I have updated the radio button part and it works. But I can’t fully stretch the main tag horizontally with 100% width for some reason.
Looks much better now, great progress.
This is becasue
body tag has some default margin value(
8px I think).
Override it with zero and try again
Good progress, keep goin on great work.
Thank you so much. Larned a valuable lesson. I should really consider using normalize.css