tags:

views:

107

answers:

4

"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
ok i used a css compressor and it changed `0.8` to `.8`
metal-gear-solid
That's fine. Readability is not a priority for a css compressor.
Marcelo Cantos
@metal-gear-solid Usually people commit their uncompressed code (for further development) and deploy the compressed code.
edwin.nathaniel
A: 

0.8em seems clearer, and it can remove the annoyance of not seeing the . sometimes. Both are the same though.

seed
A: 

use 0.8. Remember clarity is code results in long term benefits!

jini
+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