how to add padding css
Adding Side-Specific Padding. 1  1. Select the element you want to put padding on. For this, you'll want to know the class or ID, ideally. 2  2. Add the amount of padding you want to add using one of the following options: 3  3. Set the amount. As with any distance or size declaration the distance can be given in: px.  4. Check your code for syntax errors.