I get this question at least once a day:
"Can you share tips and resources to learn CSS?"
So I've decided to curate a list of resources where one could learn or improve their CSS Skills.
Important tips to remember:
- Practice and Repetition. I think I've written "border-radius: 50%" about 5 billion times. 😆
- Read code from others. This will improve your coding skills by learning from those more experienced. Its like with any foreign language, you have to listen more to improve your vocabulary. I learned how Sass/SCSS worked by reviewing lots of code on open source platforms like Codepen.
- Basic CSS on FreeCodeCamp Start with the basics. Learn all the basics of CSS for free on FreeCodeCamp.
- CSS Reference. A visual guide to CSS properties with illustrations.
- Flexbox Froggy
Next I recommend getting familiar with different layout techniques. If you're new to Flexbox, this fun little game with frogs will help you understand Flexbox better.
- CSS Grid Garden
CSS Grid is another way to layout your page. It is fairly new but this garden game makes learning fun and smooths out the learning curve.
- CSS Grid by WesBos.
- Pseudo Selectors such as :before, :after and many more on CSS Tricks.
- Join challenges like Daily CSS Images
CSS is versatile and has many attributes that requires many reps. Doing challenges such creating images with strictly CSS forces you to break down problems into smaller components. It also allows you to be creative in your approach. Read my journey through CSS images on Medium.
- CSS Crash Course For Absolute Beginners by TraversyMedia
- CSS Animation Tutorial by TheNetNinja
- CSS Animation by DevTips.
- CSS Flexbox Tutorial by TheNetNinja
Many talented developers share their code experiments on Codepen. This platform is a great resource to discover cool tricks and get inspired by all the amazing things our newfound skillset can do. Shameless plus for my page: https://codepen.io/sashatran/ 😊
Once you're comfortable with CSS. You can advance to familiarizing yourself with Sass/SCSS, a powerful CSS preprocessor, which allows you to do some neat things that plain CSS can't do. You can find some quality snippets here on my blog.
- Mozilla MDN
This is my go-to place I go to lookup CSS attributes and how they are used. They have great examples on there and clear explanations of all the CSS features.
Last but not least, do not forget the all mighty search engine. Google is your best friend, you can explore almost any question on CSS and venture into endless rabbit holes. When you return from the dark depths of CSS lore, you may find a few gemstones which better equip you for your next journey.