Design comparison
Solution retrospective
Hello People! So this was my first challenge project from this website. Even though the project was quite easy but as a beginner, I find it some how difficult. The most tiring part of this project was alignment of elements. And there is a part where I have to align clock icon with its text but neither the margin nor the padding option was working. I would be glad if someone can guide me through this.\
Thank you.
Community feedback
- @karishma-devPosted over 2 years ago
Hey, your solution looks good. Few suggestions:
- Make your container as the main tag instead of div, this should help you solve your accessibility issues.
- And for the alignment of elements issue that you are facing, I used flex in my solution. Add flex in your
left
andright
class, and also the class that contains both of these classes.
Hope this helps you!
Marked as helpful0 - @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="container">
instead of<div class="container">
.Page should contain a level-one heading
basically means yourhtml
should have ah1
it aid navigation hence<p >Out Equilibrium collection promotes balance and calm </p>
should be<h1>Out Equilibrium collection promotes balance and calm</h1>
and you should also go down orderly when you are using the headings h1 down to h2 down to h3 and so on.
This should fix most of your accessibility issues.
- You can maybe increase the font size of your
a
tag and pad out some of your items.
. Regardless you did amazing... hope you find this helpful... Happy coding!!!
Marked as helpful0 - @tesla-ambassadorPosted over 2 years ago
Hey Adil, Congrats on completing your first ever frontend mentor challenge. It looks pretty sharp too! Here's a few tips:
- First off, to answer your question, you might want to wrap the clock icon and it's text in a div and apply the following properties to the div (let's give it a class of "clock-div" I am not good with names):
.clock-div { display: flex; align-items: center; gap: 10px; }
It's the
align-items: center
property that does the magic!- You also need to place landmarks in your html code so that it's well structured and easily navigated by the browser This will fix your accessibility issues. follow this link to learn more about landmarks and how to use them. Happy Coding!
Marked as helpful0
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