Agyan
adda
Run
Reset
Copy
CSS Tutorial › CSS Padding › Padding makes buttons comfortable
Back to tutorial
Code
Edit, then press Run or Ctrl+Enter
<style> .btn { background: #1f386b; color: white; border: none; border-radius: 6px; } .small { padding: 4px 8px; } .large { padding: 14px 28px; font-size: 18px; } </style> <button class="btn small">Small padding</button> <button class="btn large">Large padding</button>
Result