
Solution retrospective
I'd like to learn to put this on a mobile device so it looks good on 375px screen as well.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @bccpadge
Hi @soniluvi. Congratulations on completing this challenge!!!🎉
Great job on your project! I wanted to share a few thought that might help you take it to the next level:
- On mobile devices you can
margin-inline:1rem;
on thebody
that sets space on the left and right side.
If you don't want to use Flexbox to center content on the page you can use CSS Grid as well.
CSS Grid in action below ⏬
.container { display:grid; place-content: center; min-height: 100vh; }
More info📚:
Alt Text for Images: Always include descriptive alt text for images. This ensures that screen readers and other assistive technologies can understand what the image represents, making your content more accessible.
Example:
<img src="images/image-avatar.webp" alt="headshot of Greg Hooper">
Heading tags in HTML are so important on webpage, guiding both users and SEO through the content.
Here's a quick breakdown:
-
<h1/>
: Represents the main heading of the page. It's the most important heading and typically used once per page. -
<h2>
: Used for subheadings under<h1>
. -
<h3> to <h6>
: Represent lower-level subheadings, each level down is less critical.
If you don't want to use the
<h1>
as the title use the<h2>
<h1>
can have.sr-only
for screen readersCheck out my solution here: Blog preview card
I hope you find these tips useful! Don’t hesitate to reach out if you have any questions or need further guidance. Keep up the amazing work!
Marked as helpful - On mobile devices you can
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