Design comparison
Solution retrospective
I would like your feedback, I feel i still didn't get it right
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, awesome work on this one. Site in general looks great as well the mobile, though there is just a horizontal scroll on it.
Some suggestions would be:
- 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
- Always have a
main
element to wrap the main content of the site. For this usemain
tag on the.container
selector. - The
img
for the background could have been used as the value for thebackground
property. Have a look at that property^^. - Using
position: absolute
on an element specially when it is a large element like the.main
selector is not a great approach since this style makes an element out of the flow. Normally, I would suggest remove stylings like these:
position top left
On the element and instead applying these:
align-items: center; display: flex; justify-content: center; min-height: 100vh;
On the parent container of the element, but the current markup makes it hard to use since you are using
img
for the pattern-image which could be done in thebackground
prop. But if you somehow managed to usebackground
and have removed the 2img
tag on the markup, apply those stylings above in the.container
selector^^- The illustration 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
. - The music-icon is decorative as well so hide it using the above method.
- Don't use
span
as a container that wraps other text-content. Usediv
instead ofspan
to wrap the annual-plan section. - Use
h2
on theannual-plan
. When using a heading tag, make sure you are not skipping a level. If you useh3
then make sure thath1, h2
are all present.
Aside from those, great job again on this one.
Marked as helpful0@daKeshra7Posted about 3 years ago@pikamart Thanks a lot. This helped structured my html and minimized y css code. Way to go....
1
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