@Tryt4n
Posted
-
it's better when you use
del
element instead ofstrike
and also you can put actual price instrong
orem
element to emphasize. Also you supposed to have only oneh1
element on the page so the title is ok, but price shouldn't be inh1
element even if you wouldn't have any one the page. -
for responsiveness it's good to use
clamp
in CSS. Like:font-size: clamp(1rem, 3vw, 2rem);
padding: clamp(0.5rem, 7vw, 0.75rem)
You can try with different numbers. First is for smallest and third is for biggest. Middle value is for change and it's supposed to by in vw
but you can try with different numbers depending from screen size and values.
Marked as helpful
@JassonJr
Posted
@Tryt4n Thank you so much for these tips, they're really helpful and I'll try to implement them as much as possible on the next projects.
I also used them a little bit to refactor the code of this solution, and removed the h1 tag from the price as you warned.