Design comparison
Solution retrospective
Using flexbox :wcontreras My first challenge From Nicaragua.
Community feedback
- @Aik-202Posted about 2 years ago
Hi Walter, Nice work!!!!. I have some suggestions though
- Change the
div
tag with class container tomain
, as there must be amain
tag in your html... - You can change the
button
tag to adiv
and give it aria role "button", this will help fix the html issue. i.e<div role = "button"></div>
- Instead of using
h1
tag for the striked price you can use thesup
tag , it's used for superscripted text in html... and it can be embedded in the firsth1
tag with class precio i.e<h1 class="precio" > $149.99 <sup>149.98</sup> </h1>
.. by doing this you will reduce the spacing between the two digits..
Marked as helpful0@ContrerasdevPosted about 2 years ago@Aik-202 Great, thanks, I'll make the corrections you told me. :)
0@Aik-202Posted about 2 years ago@tomijos Okay, you are welcome. Glad to be of help.
Marked as helpful0@vanzasetiaPosted about 2 years ago@Aik-202
Using
div
withrole="button"
makes it gets pronounced as a button but at the same time, it doesn't make thediv
behaves like a real button element. You need to do more things to make sure that thediv
behaves like a button.@tomijos To fix the HTML issue all you need to do is to fix the typo (
<botton class="btn">
). It should be<button>
instead of<botton>
.Marked as helpful0@Aik-202Posted about 2 years ago@vanzasetia Ooh, my bad, I didn't notice it was a wrong spelling. I actually asked him to do that because the
p
tag is not allowed as a child of thebutton
and since the button really isn't performing any function I told him to go with that approach, anyways I found a better approach on stack overflow. @tomijos even after correcting the spelling, change the<p>
tag to<span>
tag instead. here's the link to the approach I found on stack overflow.Marked as helpful1@ContrerasdevPosted about 2 years ago@Aik-202 and @vanzasetia. Thank you for your help, I corrected what they told me, I am very grateful for the help. Thank you
0@vanzasetiaPosted about 2 years ago@tomijos Great! I would recommend generating a new report to make sure there is no issue left.
0@Aik-202Posted about 2 years ago@tomijos You are welcome, I'm glad I could be of help.
0 - Change 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