Submitted about 3 years ago
Four card Feature web page using CSS positions and float
@tomxyd
Design comparison
SolutionDesign
Community feedback
- @cjdemillePosted about 1 month ago
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 GitHubJoin 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