When working with margin or padding in CSS - give CLOCKWISE VALUE padding: 0px 0px 0px 0x; (top right bottom left)
Thanks for the info. You can specify padding:5px; (if all the sides top, right bottom left have same margin) padding:0 (if value is 0 no need to specify px)
More details : If you just type one value : padding:5px (it will apply to all side, top, right, bottom and left) If you type 2 value : padding:5px 10px (it will apply 5px for vertical, top and bottom, and 10px for horizontal;left and right) If you type 4 value : padding:2 4 6 8 (it will apply for top, right, bottom and left) Just want to add some info. It also work for margin