Edit a web page button with CSS

Viewed 37

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

<div class="sign-in-wrap">
<a href="#" target="_self" class="btn-sign-in">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?

2 Answers

Please use this <button class="btn-sign-in">START EXPLORING</button>

You need to use the button component, not the link

Related