Genie 🧞♂️
@EugeneCarbadoAll comments
- @itsleticiaSubmitted over 1 year ago@EugeneCarbadoPosted over 1 year ago
Hi Leticia,
I've had a look at your code and I'd like to offer some tips. Firstly I can see that as I expand my window your content box expands also. This is due to using
vw
to set the size. It would be better for you to find out the size of the content box, or even what you think the size should be then usepx
orrem
values (1rem
is equal to16px
. Or you can set it to what you like in the root). Usingvw
orvh
can be tricky because as the user's window increases so will your element. In some cases, this could be useful, but for something like a product card this is something that should, in most cases, have a fixedheight
/width
.You have used
em
values and this can be also tricky, as usingem
values will inherit the size of thediv
it is nested in. A better value to use isrem
as it always refers to the value set in the root.I hope this feedback is useful.
If you have any questions don't be afraid to reach out :)
0 - @EnidaShehuSubmitted over 1 year ago
Any feedback or suggstion is much appreciated :)
@EugeneCarbadoPosted over 1 year agoI would say you definitely need to set a fixed
width
andheight
for the container. That is why, looking at your preview site, the whole element keeps resizing. Setting thewidth
andheight
withrem
orpx
in mobile and then desktop would give the results you desire and stop it from resizing when you expand the window. Have a look at the design and see if you can figure out how muchrem
orpx
you will need :)Marked as helpful0