I am trying to create a playing field using a div with different background-color , so I wrote some simple css (I just figure out how to do this at this point, and I wrote the div in manual mode - so im doesn't include html / js)
.grass { background-color: oliveDrab; } .dirt { background-color: sandyBrown; } div{ height: 25px; width: 25px; display: inline-block; margin: 0; }
when I did it, and there was a margin. So:

so I checked firebug and it shows margin , border and padding 0 !!

Demo script .
I anticipate that I missed some extremely basic css knowledge here.
source share