Hey , Congratulations on completing this challenge!
Here is my feedback:
-
You're using the span element too much.
-
Use <main> instead of a simple <div> to improve the semantics and accessibility on the page. Remember that every page should have a <main> block and that <div> doesn't have any semantic meaning.
To answer your questions.
*1. The Add to Cart text and icon are both in the button. Just put them in it like this:
<button class="btn" type="button"><img src="images/icon-cart.svg" alt="">Add to Cart</button>
Then you can give the img some margins to create space.
*2. For the smaller old price, you have to make sure both prices are under one parent elements. i.e.
<div class="prices">
<strong>$149.99</strong>
<p class="original-price">$169.99</p>
</div>
Then use this CSS:
.prices {
display: flex;
margin: 20px;
}
strong {
font-size: 2rem;
margin-right: 15px;
}
.prices p{
font-size: 0.8rem;
margin-top: 12px;
}
*3. Already answered in the first question.
Keep doing a good job!