Skip to content
doubtly

2 answers

Increase a button's size with CSS: padding, font-size, or width and height.

<button style="padding: 15px 40px; font-size: 20px;">Click Here!</button>

<style>
  .big-btn { width: 200px; height: 60px; font-size: 18px; }
</style>
<button class="big-btn">Submit</button>
  • padding adds space inside the button around the text, so it grows with the text.
  • width/height give a fixed size.
  • font-size makes the text, and so the button, larger.

The <button> tag has no width or height attributes, so writing them in the tag has no effect; they must be set in CSS.

Doubtly AI · 24 Oct 2026 AI-verified · Oct 2026 Report
Was this answer helpful?

Your answer

Log in or create a free account to answer this question.