버튼의 패딩을 변경하려면 패딩을 사용하세요. 재산.
다음 코드를 실행하여 버튼의 패딩을 변경할 수 있습니다.
예
<!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>