'Do whitespaces is normal in css?
I like to code this way:
h1 {color:red;}
but in w3shools they make it like that:
h1 {color: red;}
Is it the same end-results?
Solution 1:[1]
Yes both will give you the same result. We follow the whitespaces just to give good look and indentation to our css so that the code will be easily readable to other developers also. If you see any minified css (with .min.css extension) you can see there are no white spaces in it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Shriti Gaichor |
