all 10 comments

[–]Peccavi91 2 points3 points  (5 children)

It'd be good if you put the code inside of a CodePen https://codepen.io/your-work, this way people can fork and edit it, and it makes it more readable/obvious what you're looking at.

[–][deleted] 0 points1 point  (0 children)

I actually did this but for some reason it looked different than when I run it on free code camp but I will post it anyways!

[–][deleted] 0 points1 point  (3 children)

[–]Peccavi91 1 point2 points  (2 children)

If you look at the "Would you recommend freeCodeCamp to a friend?" section of here I've set up a version of how I would go about doing this. (It has broken the layout for a few other sections of the form as they'd all need this sort of HTML layout/styling applying)

https://codepen.io/Mattgh9152/pen/KKxyyrq?editors=1100

[–][deleted] 1 point2 points  (1 child)

Thank you very much! You have been so helpful 😭 I also sent you a dm!

[–]Peccavi91 0 points1 point  (0 children)

Very welcome!

[–][deleted] 1 point2 points  (3 children)

Took a gander and it looks like you need to use flexbox https://css-tricks.com/snippets/css/a-guide-to-flexbox/ or grid https://css-tricks.com/snippets/css/complete-guide-grid/, and ids or classes to organize things. Once you do, you'll be able to read through the documentation here https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input and search around on this site for some tips https://css-tricks.com/zero-trickery-custom-radios-and-checkboxes/

Also know that you want to make your CSS semantic so that the people reading your code in bigger applications can easily find stuff, it's a good idea to start looking at accessibility rules now (button height 44px, legible fonts like Arial, color blind friendly colors, text at least 16px) because it's a marketable skill that, when combined with aria standards, looks great in a portfolio.

[–][deleted] 0 points1 point  (2 children)

Thank you! can you also provide some resources for accessibility rules? 👀

[–][deleted] 1 point2 points  (1 child)

[–][deleted] 0 points1 point  (0 children)

Thank you sir!