How to increase the clickable area of an a tag button with CSS?

Spread the love

To increase the clickable area of an a tag button with CSS, we set its width and height.

For instance, we write

.button a {
  display: block;
  width: 100%;
  height: 100%;
}

to set the width and height of the link and make it a block element with display: block;.

Leave a Reply

Your email address will not be published. Required fields are marked *