Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

using plain HTML and CSS

Rehm-Ali 40

@rehmali

Desktop design screenshot for the Blog preview card coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

I am proud that i wrote whole code with my own head , without seeking any code online. I will next make a plain on paper before starting a project

What challenges did you encounter, and how did you overcome them?

Well, in the footer it was hard for me to align text with the author image, i researched somethings online and i overcome this issue.

What specific areas of your project would you like help with?

I want people to tell me more about position elements within elements

Community feedback

P
Micha Huhn 220

@MichaHuhn

Posted

Good work!

You used display: flex; and align-items: center; correctly to position the author name. When using display: flex; (or display: grid;), it's possible to use the gap property to create a gap between each element inside a flex container.

E.g.

display: flex;
align-items: center;
gap: 0.75rem;

The padding on the author name can be omitted with this approach.

The image corners are a bit squashed. It can be fixed in the following way:

  1. Wrap the card with a dedicated HTML element like <div class="blog-preview-card"> or <article class="blog-preview-card">
  2. Apply padding to this card component
  3. Remove the padding from the image

I hope that's a bit useful.

Marked as helpful

0

Please log in to post a comment

Log in with GitHub
Discord logo

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