Home > Blockchain >  EDIT A WEBPAGE BUTTON WITH CSS
EDIT A WEBPAGE BUTTON WITH CSS

Time:03-20

I am new to HTML/CSS and I want to edit the style of a button. This is the html code :

<div >
<a href="#" target="_self" >START EXPLORING</a>
</div>

and this is the CSS :

.btn-sign-in {
  width: 180px;
  height: 50px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  background-color: #10cb6c;
  line-height: 50px;
  color: #fff;
  font-size: 16px;
  text-align: center;
  display: block;
  -webkit-transition: .4s;
  -o-transition: .4s;
  transition: .4s;
  white-space: nowrap
}

.btn-sign-in:hover {
  color: #fff;
  background-color: #2add82
}

What I want to achieve is this style https://codepen.io/Cyris/pen/abpjJrK .

Already tried to apply the css code to my .btn-sign-in from the link above but is not working at 100% .

What I am doing wrong? Please help.

CodePudding user response:

Please use this <button >START EXPLORING</button>

CodePudding user response:

You need to use the button component, not the link

  • Related