added jsfiddle demo and fixed for padding