Reputation: 152935
"0.8em" to ".8em" , is both same? which should we use?
Upvotes: 0
Views: 1249
Reputation: 1102
The code in css file is to be interpreted by the browser, modern browser render the same page with 0.8em or .8em.
If you want to have less trafic (css files smaller) use .8em otherwise if you want full comprehension of your styles by other users use 0.8em.
In my case i use .8em, cause anyone can interpret that as 0.8em.
Upvotes: 1
Reputation: 11317
use 0.8. Remember clarity is code results in long term benefits!
Upvotes: 0
Reputation: 71
0.8em seems clearer, and it can remove the annoyance of not seeing the . sometimes. Both are the same though.
Upvotes: 0
Reputation: 186108
They are the same, but 0.8 tends to be easier to read than .8.
Upvotes: 3