@tomwinskell
Posted
Nice work!
Here's some suggestions that might help.
- It's helpful for those looking at your code to call your css file style.css, standard.css or default.css. It can also be helpful to put your stylesheet into a folder called stylesheets.
- Nice reset with the use of * in your css. There are also pre-prepared CSS resets https://meyerweb.com/eric/tools/css/reset/.
- Organizing your CSS into sections with comments as headers can help. For example:
// Font-styles
h1{
font-size: 21px;
}
p{
font-size: 15px;
color: hsl(216, 15%, 48%);
}
- Using the
!important
tag isn't usually the best way to apply a CSS property. Style sheets are cascading and so there are many ways to apply the style without using the important tag. Read more here https://learn.shayhowe.com/html-css/getting-to-know-css/.
Happy coding!
@mudasirNadeem
Posted
@tomwinskell Thanks