Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

HTML | CSS | Learning basics before I go for any frameworks

Danielβ€’ 130

@tenczowy

Desktop design screenshot for the NFT preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I am still trying to solve the newbie challenges using only html and css but I find it really hard sometimes to produce clean and dry code and at this point I am not sure if I should dive even dipper in basic css and general rules of writing clean code or should I try to use frameworks or other technologies to make my code better. I am asking from the position of someone who hopes to get a junior dev job within next year.

Community feedback

Hassan Moatazβ€’ 1,860

@hassanmoaa

Posted

Hello !

Great Job solving the challenge mate congrats πŸŽ‰

Some suggestions for improvements.

For the font-size it's is better to use rems and ems.

font-size: 13px;

  • i see you using pixels for many elements, never use pixels for font-sizes in any element, here's why:

  • Certain font-related CSS properties will render your site completely inaccessible if their value is declared using pixels even once.

Which properties are affected?

All of these properties must never ever be declared in pixels:

  • font-size
  • line-height
  • letter-spacing

If you've used pixels to define any of the above style properties, these will not respect the user's font size preferences!

  • You should use ems, and rems for font-sizes would be better

This article may help:

https://fedmentor.dev/posts/font-size-px/

βž–βž–βž–βž–βž–βž–βž–βž–

Other than that you're good, keep up the good work!

βž–βž–βž–βž–βž–βž–βž–βž–

And for your learning journey i recommend mastering the fundamentals of HTML/CSS first! then dig deeper into CSS practice it everyday till you get confident with it and a good grasp of knowledge, then learn Javascript Master the fundamentals do some solo projects with it to check your understanding and when your comfortable with your using these three together building projects go learn a Js framework like React or whatever you like and is popular.

So Don’t ever learn a framework without mastering the fundamentals first and practice your vanilla skills so you can understand the framework easily!

Marked as helpful

0
mericadevβ€’ 80

@mericadev

Posted

Continue practicing writing readable and clean html and css code. If you use frameworks as a shortcut you'll be doing a disservice to your self and learning journey. The fundamentals will help you transition into frameworks smoothyly. I learnt this the hard way trying to learn Javascript framework when I had not mastered my javascript fundamentals.

You did great !

Marked as helpful

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord