Design comparison
Solution retrospective
I'm proud of how quickly I did it so I did retain a decent amount oh html and css that I just learned. I will definitely break down the design more and I will be learning grid a little more in depth as well as flex box.
What challenges did you encounter, and how did you overcome them?centering my container to the middle of the page took me quite a bit for some reason but I finally just used margin not sure if that is the correct answer.
What specific areas of your project would you like help with?would want to know how my css structure is. is it organized and clean? and was it ok that I used grid instead of flex box. thank you!!
Community feedback
- @mkborisPosted 3 months ago
Hi @gbaby97 great job completing your first challenge, here are a few things to review
There are a few things missing from the
head
section that can improve your webpage:-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Defining the viewport helps your webpage render properly on various devices like desktops, mobiles, and tablets. -
<meta charset="UTF-8">
It's a good practice to specify the character encoding used in your document. -
The text content in these
div
elements (Name, location and description) should be semantically wrapped in more appropriate HTML tags like headingsh2
or paragraphsp
for better accessibility and structure. -
To properly center the card, add this on your
body
and remove the all the margin properties from the .container
display: flex; align-items: center; justify-content: center; min-height: 100vh;
- Using Flexbox would have been a better choice for this than Grid.
- Just the
a
tag is sufficient for the social links, thebuttons
are not needed for this. Also, using an unordered listul
to group the links is a better approach for both semantics and accessibility. You use a single class for all the links and style them the same rather than creating different classes for every single one. - Consider using a modern CSS reset at the start of the styles in every project. Like this one Modern CSS Reset. This will help reset a list of default browser styles.
Hope this helps, Good luck!
Marked as helpful0@gbaby97Posted 3 months agoHey @mkboris I really appreciate you taking the time to provide feedback. thank you ill definitely apply these tips for my next project!
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