Design comparison
Community feedback
- @RioCantrePosted almost 3 years ago
Hello there! Good job with this project.Viewing your solution, I would suggest the following for you...
- Add the
background-color: hsl(217, 54%, 11%);
in thebody
rule set - Remove all the properties in the
.outer-container
and addmargin-top: 8rem;
to align the content in the center - Remove the
position: absolute;
,left: 35.625em;
andtop: 4.25em;
and addmargin: auto;
- Add the hover state of the design. Starting with the Hero image, you can take this example Overlay in image. Add
color: hsl(178, 100%, 50%);
andcursor:pointer;
for the hover states of the fonts in.content p
andspan name
- Wrap these section with a
div
and use flexbox for the alignment
<div> <img class="avatar" src="images/image-avatar.png" alt="avatar image"> <span style="color:hsl(215, 51%, 70%);">Creation of</span><span class="name"> Nihar Saxena</span> </div>
- Wrap the
outer-container
with specific tag likemain
for readability - Adjust the size of the
.avatar
into 28px and addborder: 1px solid white;
andborder-radius: 50%;
Hope this is helpful and Keep it going!
Marked as helpful0 - Add the
- @denieldenPosted almost 3 years ago
Hi NIHAR, great job!
Try use Flexbox for center the card, read here -> flex guide
You just miss them the effect
:hover
. For example, I created adiv
that appears on hover. I used tailwind but you can still see and understand which css properties you can use to do the same. Look here -> my solutionIn the end try to adding a little
transition
on the element with hover effectHope this help ;) And keep it up!
Marked as helpful0 - @Sarang-PatelPosted almost 3 years ago
Congratulations, on getting the solution.
Just a few things to note:
- add all elements in the body in a main tag
- use atleast one h1 tag.
- use :hover in css to get the hover effects of changing color.
points 1 & 2 will help remove accessibility issues.
Hope this helps.
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