Design comparison
Solution retrospective
This was a challenge and took me far longer than I anticipated. However I think I have learnt a fair bit and starting to use Flexbox to layout the page has been rewarding. One thing I would appreciate some feedback on is the background, I used the image to cover the background, is the best way to implement the SVG? Thanks, any feedback is very welcome.
Community feedback
- @RioCantrePosted almost 3 years ago
Hello there! Nice job on making this project. Viewing your solution, there are things you should considered before submitting it.
- Use a validator to check your solution, for instance, the HTML structures
btn
is not a tag. You should replaced it with the proper tag which isbutton
- It's common to use
div
to wrap the contents, for best practice you should usemain
tag for readability - Same goes with the
.attribution
wrap it withfooter
- Eliminate the link tag
a
the design doesn't have to be clickable - Add an
alt
to theimg
tag, put a description of the image
Overall, you did a great job with the design but put more effort on the code quality. Keep up the good work!
Marked as helpful0 - @denieldenPosted almost 3 years ago
Hi Zaclobsterboy, good work!
There is no better way to implement SVG, but please note that the advantage of
svg
is that they are editable via code, so the best way is in base of case for sure. In this case it is the perfect way to implement it.Also, try using Flexbox for center the card on the page: give the flexbox and
height
properties to thebody
and removemargin
from the.card
class.Note: Flexbox aligns to the size of the parent container.
You can use the
vh
measurement for the height... Viewport Height handles the sizing of an element in relation to the height of the browser window.I hope that helps!
Marked as helpful0 - @ZaclobsterboyPosted almost 3 years ago
Thanks @denielden for your comments, much appreciated.
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