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

Four card Feature web page using CSS positions and float

@tomxyd

Desktop design screenshot for the Four card feature section coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

P
cjdemille 480

@cjdemille

Posted

There are a couple steps you could take to refactor this.

Your span with the "header-1" class is unnecessary. You could just apply that class to the p tag.

Since the <b> tag doesn't have semantic meaning, you could just use the font-weight attribute in CSS.

You also may want to check your breakpoints for switching from the column, to the 2D grid. Your project jumps a bit early and the image is coming down further than the card.

Because you're manually setting the width and height (and changing the width in your media query), the images can distort as you scale the page.

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