Pure css and html done with atom text writer.

Solution retrospective
I have some phantom space in my center div that I can't get to go away. Any advice or resources to look at to help me figure it out would be appreciated.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @kenreibman
To get rid of accessibility issues as well, I would wrap the entire content starting from
div class="header"
in amain
tag like you did for yourfooter
For linking images, I would keep the files in the
image
folder that frontendmentor provides you. There's no need to extract it all in one place like you did in your github.In your Index.html I would then link images like so:
<img src="images/icon-supervisor.svg">
- @kenreibman
I believe having
margin: 2rem
on.card
is one of the factors of your "phantom space"I also applied:
.middle { ... ... display: flex; flex-direction: column; align-items: center; }
which seems to perfectly space out your cards.
I also recommend setting
max-width
with set values such asrem
to keep your card sizing more consistent, and scaling it down as your screen gets smaller/bigger.Using
%
for the width on.card
and.middle
shrinks the width too much when scaling down.I hope this helps!
Join 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