"0.8em" to ".8em" , is both same? which should we use?
+3
A:
They are the same, but 0.8 tends to be easier to read than .8.
Marcelo Cantos
2010-04-25 03:03:24
ok i used a css compressor and it changed `0.8` to `.8`
metal-gear-solid
2010-04-25 03:05:51
That's fine. Readability is not a priority for a css compressor.
Marcelo Cantos
2010-04-25 03:09:42
@metal-gear-solid Usually people commit their uncompressed code (for further development) and deploy the compressed code.
edwin.nathaniel
2010-04-25 03:58:55
A:
0.8em seems clearer, and it can remove the annoyance of not seeing the . sometimes. Both are the same though.
seed
2010-04-25 03:04:04
+1
A:
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.
fampinheiro
2010-04-25 03:20:35