Design comparison
Solution retrospective
I need a little bit more practice with positions. Would like to know when is it a good time to use float as a positioning tool. I'm open to all the feedback you can give. Thanks in advance.
P.S: The Mobile version is not done yet, as i haven't learned how to do it.
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, great work on this one. As you said mobile is not done, but in general, site looks great, just that horizontal scroll appears.
Some suggestions would be:
- Don't use
float
:>> it is hard to use by now, also you should use flexbox orgrid
to position item/items properly. - It would be great to have a base styling of this:
html { box-sizing: border-boxl font-size: 100%; } *, *::before, *::after { box-sizing: inherit }
This way, handling an element specially its size will be easier because of the
box-sizing
- Instead of
width: 1440px
usemax-width: 1440px
so that the layout won't have a fixed size of 1440px. - Always have a
main
element to wrap the main content of the site. For this usemain
tag on the.background
selector. - The illustration being used is only a decorative image. Decorative images should be hidden for screen-reader at all times by using
alt=""
andaria-hidden="true"
to theimg
tag or onlyaria-hidden="true"
if the image is usingsvg
. - Only use descriptive
alt
on images that are meaningful and adds content to the site otherwise hide the image for screen-reader users. - Also, when using
img
tag, you don't need to add words that relates to "graphic" such as "logo" and others, sinceimg
is already an image so no need to describe it as one. - Always have an
h1
on a page. On this one, you could useh1
for theorder summary
for now. - Also, when using a heading tag, make sure you are not skipping a level. If you use
h4
then make sure thath1, h2, h3
are all present. - The music-icon should be hidden as well since it is only a decoration so use the method above.
- Also,
table
element on this is not suited .table
element is usually used when there are list of data that has same fields. For this, adiv
would be fine. - The
annual-plan
could use a heading tag since it gives overview on what the section would contain.
Aside from those, great job still on this one.
Marked as helpful1@Vonka-hubPosted about 3 years ago@pikamart Thank you a lot!. Had to learn a little bit of git to upload the new corrected files, was fun and tedious. Table element remain the same, but im eyeing another challenge where i can use divs from the start. Also, asked a few tips from a friend and added said tips to the code(the use of vh + min-height and setting 100% to width and height on background selector). Thank you so much for your time. p.s: I'm still learning git, so i created a new branch(master) by accident instead of updating the main one. I changed it to default so the deployment uses its code instead of the old one(main).
1 - Don't use
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