Skip to content

Commit

Permalink
fixed buttons' clickable area
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPit committed Aug 17, 2022
1 parent bb6f14d commit 600305e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h1>This website is awesome</h1>
<p>This website has some subtext that goes here under the main title. It's a smaller font and the color is
lower
contrast</p>
<button><a href="#">Sign up</a></button>
<button class="button-one"><a href="#">Sign up</a></button>
</div>
<div class="img">this is a placeholder for an image</div>
</div>
Expand Down Expand Up @@ -76,7 +76,7 @@ <h2>Some random information.</h2>
<p class="action">Call to action! It's time!</p>
<p class="action-sub">Sign up for our product by clicking that button right over there!</p>
</div>
<button><a href="#">Sign up</a></button>
<button class="button-two"><a href="#">Sign up</a></button>
</div>
</div>

Expand Down
25 changes: 15 additions & 10 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,17 @@ a {
color: #E5E7EB;
}

button {
.button-one {
padding: 6px 0;
border-radius: 4px;
border: none;
background-color: #3882F6;
color: #E5E7EB;
font-weight: bolder;
height: 28px;
width: 97px;
flex-shrink: 0;
}

button a {
height: 28px;
width: 97px;

.button-one a {
padding: 6px 25px;
}

.img {
Expand Down Expand Up @@ -188,6 +183,16 @@ button a {
color: #E5E7EB;
}

.modal button {
.button-two {
background-color: #3882F6;
border: 1px solid #E5E7EB;
}
color: #E5E7EB;
padding: 6px 0;
border-radius: 4px;
font-weight: bolder;
flex-shrink: 0;
}

.button-two a {
padding: 6px 24px;
}

0 comments on commit 600305e

Please sign in to comment.