Design comparison
SolutionDesign
Solution retrospective
My biggest difficulty was aligning all the elements in the center of the page and rounding my photo. Could anyone help me with this?
Community feedback
- @perfidevPosted 10 months ago
You can align elements with CSS Grid using align-items (vertical) and justify-items (horizontal).
You can also use Flexbox, using align-items (vertical) and justify-content (horizontal).
And for the image, you can use border-radius.
img { border-radius: 100px; }
Suggestions:
- Use
box-sizing: border-box
on *, so the browser will include the width and height of borders and padding in the total width and height calculation of the element.
* { margin: 0; padding: 0; box-sizing: border-box; }
- Add
alt
attribute to the image.
<img src="perfil100px.jpg" alt="Pedro's photo" />
- Place your content inside the <main> tag.
<main> <div> ... </div> </main>
Marked as helpful1 - Use
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