Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 5 months ago

Responsive Blog Preview Card

pure-css
ElaysonAbreu•30
@ElaysonAbreu
A solution to the Blog preview card challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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

To insert vertical space after the span for the ID learning, I had to insert it into a helper div, which may not be the best solution.

I initially had no success vertically centering the profile picture and name. To align them, I had to set an absolute value for vertical-align in #img-avatar.

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

It is not possible to use margin-bottom on a span, since it has an inline display. So my question is: is there a better way to insert vertical space after the span with id leaning other than enclosing it with a div?

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on ElaysonAbreu's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License