Home > Enterprise >  Changing background size of an a href link
Changing background size of an a href link

Time:03-30

How do you change an a href link background size? Like for example, you make an a href, then you put a background color on it. But the background color is thin. How do you make it bigger?

CodePudding user response:

I guess you were searching for the padding. It's called padding, not the size of the element.

Consider a simple example:

a{
  background:red;
  color:white;
  padding:10px;
}
<a href="example.com">test</a>

  • Related