@shashilo
Posted
Hey Richard. I can spot some was you can make this clean cleaner. Here's a list:
- Usage of modern screen breakpoints. https://getbootstrap.com/docs/5.0/layout/breakpoints/
- Do not use Id's. Usage of class names here is more ideal. This is a small widget, but when you get into larger scale projects, almost everything is shared or reused. Practicing this will help you down the road. https://css-tricks.com/the-difference-between-id-and-class/
- Do not append
div
to CSS selectors. This makes it too specific and harder to override. Simple is best. - Using SASS/SCSS or CSS variables to set global variables on reused values like colors, font family, etc.
Marked as helpful
@Shatango
Posted
@shashilo Thank you for the tips! Thats exactly what i am worried about for larger projects! Thank you for taking the time with the feedback, it is appreciated! Onward to the next challenge!
@shashilo
Posted
@Shatango You have to start small and that's ok. As you build more, you'll get better. :)