Design comparison
Solution retrospective
This was a fairly easy HTML and CSS task. One problem I did have with it though is finding a really perfect way to center the main elements. What is the best way to center elements? also, what is the best way to move around elements in general? I notice that "position: absolute" and "position: relative" isn't very good because when the screen is resized, elements tend to move in a scattered state.
Community feedback
- @SamadeenPosted over 2 years ago
Hey!! Cheers 🥂 on completing this challenge.. .
Lets firstly work on your accessibility issues.
Document should have on main landmark
basically means your html should be structured more semantically and the correct format should be your<header>......</header>
followed by your<main>......</main>
and lastly your<footer>....</footer>
hence you should use<main class="QR_background">
instead of<div class="QR_background">
.Page should contain a level-one heading
basically means yourhtml
should have ah1
it aid navigation hence<h2>Improve your front-end skills by building projects</h2>
should be<h1>Improve your front-end skills by building projects</h1>
and you should also go down orderly when you are using the headings h1 down to h2 down to h3 and so on.Images must have alternate text
Its hard for screen readers to pick up messages from images withoutalt
text.. Its always advisable to includealt
text to aid screen reader
This should fix most of your accessibility issues.
. Regardless you did amazing... hope you find this helpful... Happy coding!!!
0 - @Atul-BhattPosted over 2 years ago
Hey Okera,
Positioning elements might seem difficult at first but once you understand flexbox and grid layout, you'll see that it's way easier than you thought.
- First read a bit about Flex Layout: https://css-tricks.com/snippets/css/a-guide-to-flexbox/#aa-flex-grow
- Then go through this website : https://flexboxfroggy.com/
0
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