Design comparison
SolutionDesign
Solution retrospective
okay i dont know some stuff
- how do i make the $169.99 center with the big $149.99 text
- how do i make the web responsive like two different version for mob and desktop?
thats all.all feedbacks are welcome thanks!
Community feedback
- @beniusisPosted 10 months ago
Hey 👋 Good job on finishing the challenge! I know there are stuff to be corrected, so here's a few things worth mentioning:
- You can set
letter-spacing
property in CSS instead of using non-breaking space entities here:<p class="perfume"> P e r f u m e</p>
. <strike>
tag is not supported anymore in HTML5. Instead use<del>
tag for the previous price of the product.- You should not use
<br>
tags just for the sake of leaving gaps between the different elements. Read more about its purpose here. - You should use semantic elements like
<main>
,<header>
,<footer>
to improve accessibility and achieve better organization. - To vertically align current price and old price elements, you could wrap them both in one
<div>
and use flexbox propertyalign-items: center
. You can read more about the usage of flexbox here. While reviewing your code, I noticed that you overuseposition: absolute
property. Personally, I would rather learn flexbox and implement its usage for better experience. - To create a responsive web page, you can use media queries and set different properties to different elements. Here's an article with basics of responsive web design.
Happy coding! 😀
Marked as helpful4 - You can set
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