Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
this time I was able to center the paragraph tag inside a container using line height.
What challenges did you encounter, and how did you overcome them?None
What specific areas of your project would you like help with?Any advice and improvement in the code will help.
Community feedback
- @RanitManikPosted 5 months ago
Everything looks fine just a couple of suggestions from me 🌝>>
- Avoid limiting the height with a fixed value like
min-height: 100vh
. Instead, usemin-height
to ensure the body can expand as needed.
body { min-height: 100vh; }
- Use the
link
element in HTML to include a font instead of@import
in CSS. This method is more efficient for loading fonts.
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
1 - Avoid limiting the height with a fixed value like
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