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 section using HTML and CSS

Byron 2,180

@byronbyron

Desktop design screenshot for the Four card feature section coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hello ladies and gentlemen! This was a nice little fun one. I used flexbox with some transforms to get the layout right on desktop. I also added some bonus hover states as well. Please leave a like and maybe even a cheeky comment!

Community feedback

@pikapikamart

Posted

Hey, really nice work on this one. Just saw the site and it looks really great at desktop and mobile view and it is responsive as well which is really nice.

For some suggestions, here are some:

  • If you zoom out on your screen, you will notice that the layout is not being centered vertically properly. You can add justify-content: center on the body tag so that it will be centered, also, you don't need the flex-direction: column on the body since you only have a single child on it. If you remove this, just use align-items: center ( though I know you already know this :> );
  • For this one, you could just use a main tag and remove the header tag. Usually, a primary header will only contain the top-most part of the site, including the website-logo, navlinks and other controls. On this one, the text that the header is wrapping is just the hero-text of the site, making it a part of the main tag.
  • Each of the icons on the card are only acting as decorative image. Decorative images should be hidden for screen-reader at all times by using alt="" and aria-hidden="true" to the img tag or only aria-hidden="true" if you are using svg instead of img tag.

Just those ones since the sites looks really great from the start. Again, great job on this one.

1

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