Design comparison
Solution retrospective
I wrote 'del' to deleted price $169.99, but it does not work! What's wrong with it?
β‘Now I find what's the problem. Thanks!!!π
Community feedback
- @jefflangtechPosted over 1 year ago
Hello!
One way you could approach this is to keep all your information and structuring in the HTML file, and use CSS for all styling. Personally, for me, that's an easier way of thinking about how to make it all work well together.
Here's a way to get the strike-through with CSS (using your HTML):
del { text-decoration: line-through; }
Have fun! π
Marked as helpful0@bundassePosted over 1 year ago@jefflangtech Thanks for your comment! I'll upgrade my codes with your advice!π
0 - @MelvinAguilarPosted over 1 year ago
Hello there π. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
- The
text-decoration: none
property in the* { }
selector is removing the default underline style of the<del>
element.
- Avoid using uppercase text in your HTML because screen readers will read it letter by letter. You can use the
text-transform
property to transform the text to uppercase in CSS.
- The product image is not a decoration. You must not use the background-image property to add the product image. Instead, use the
<picture>
and img tags to add the image. Use the background-image property only for decorative images that do not add any information to the page.
I hope you find it useful! π Above all, the solution you submitted is great!
Happy coding!
Marked as helpful0@bundassePosted over 1 year ago@MelvinAguilar Oh my god, I totally forget what I wrote in *{} selector! Thank you very much for your feedback, I'll keep it in my mind!π
0 - The
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord