Here is my code: https://codepen.io/anurag1989/pen/GRGVjXa The main problem is the 'btn' class. I am not able to centre it inside the btn class. Tried making the display property of 'p element' as inline-block but still not working. On opening the inspection tool, I see that the text area of btn class is increasing (leaving white space) which is making the text inside it to look off the centre. Is there any way out for this?