Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> CSS

เปลี่ยน Padding ของปุ่มด้วย CSS

หากต้องการเปลี่ยน padding ของปุ่ม ให้ใช้คุณสมบัติ padding

ตัวอย่าง

<!DOCTYPE html> <html>    <head>       <style>          .button {             background-color: yellow;             color: black;             text-align: center;             font-size: 15px;             padding: 10px;          }       </style>    </head>    <body>       <h2>Result</h2>       <p>Click below for result:</p>       <button class = "button">Result</button>    </body> </html>