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

Blog preview card . it is not responsive

Rahul 50

@rahul11636

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


my project is a blog preview card created using HTML and CSS. It displays an image, title, description, and a "Read More" button, providing a snapshot of a blog post. This simple web component serves as a visual representation of blog content, demonstrating foundational skills in front-end web development. you should please screen 10% minmum decerease.

Community feedback

Davide 330

@deedeedev

Posted

Hi @rahul11636 , nice job. To improve the responsiveness of the card you might want to avoid setting a percent width on your container div and use a fixed width or a maximum width in px or rem. So instead of doing:

.mini-container {
  width: 25vw;
}

you could try something like:

.mini-container {
  max-width: 24rem;
  padding: 20px;
}

To fix the problem with the image you can remove the position: relative top and left rules and just apply width: 100%.

The approach is this: use a container with a fixed width/max-width (that can change using media queries, depending on display size) then apply some padding on it and place your content inside. You might also want to look into flexbox, it really simplifies content aligning once you grasp how it works.

Keep up the good work! 👍

Marked as helpful

0

Rahul 50

@rahul11636

Posted

@deedeedev hey can you help me please contact me my instagram is link is https://www.instagram.com/its_rahulmaht0/

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