Nour El-din El-helw8,241 Points
The Property margin's Value "auto"
I still don't get what actually happened. I calculated the space left in the container after subtracting the items' widths and the container's padding, it turned out to be more than the margin-right (which is set to auto) of item-1 so does that mean that it doesn't actually take all space left? if so then what does it actually do ? or is there sth wrong in my calculations.. Thx in advance. Here is a snapshot of my workspace : https://w.trhou.se/otah7v70p1 .
Antti Lylander9,672 Points
Hi, did you take item2's left margin (5px) into account? All of your items have margins.
If you are using chrome, use ctrl+shift+i to inspect the elements. Everything seems normal to me.