HTML_CSS_FULL_COURSE/buttons_challenge.html

63 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2024-03-27 03:04:48 +00:00
<style>
a {
color: rgb(0, 113, 113);
2024-05-05 02:21:06 +00:00
transition: color 0.15s;
}
a:hover {
color: rgb(204, 51, 0);
2024-03-27 03:04:48 +00:00
}
.product {
font-weight: bold;
font-size: 24px;
}
.price {
color: rgb(0, 118, 0);
font-weight: bold;
}
.add-2-cart {
background-color: rgb(255, 216, 20);
margin-right: 5px;
border: none;
height: 32px;
width: 105px;
border-radius: 16px;
2024-05-05 02:21:06 +00:00
transition: background-color 0.15s
}
.add-2-cart:hover {
background-color: rgb(245, 206, 10)
}
.add-2-cart:active {
opacity: 0.8
2024-03-27 03:04:48 +00:00
}
.buy-now {
background-color: rgb(255, 164, 28);
border: none;
height: 32px;
width: 105px;
border-radius: 16px;
2024-05-05 02:21:06 +00:00
transition: background-color 0.15s;
}
.buy-now:hover {
background-color: rgb(245, 154, 18);
}
.buy-now:active {
opacity: 0.8;
2024-03-27 03:04:48 +00:00
}
</style>
<a href="https://amazon.com/"> Back to Amazon </a>
<p class="product"> Nike Black Running Shoes </p>
<p class="price"> $39 - in stock. </p>
<p> Free delivery tomorrow. </p>
<button class="add-2-cart">Add to Cart</button>
<button class="buy-now">Buy now</button>