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

Responsive four card feature section using CSS flexbox

Kelly CHI 210

@KellyCHI22

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


Hey there, this is my #10 challenge ✌️ Thank you for reviewing my code, I am happy to hear any suggestions!

Community feedback

@VCarames

Posted

Hey there! 👋 Here are some suggestions to help improve your code:

  • To give your HTML code structure, you want to set up your code in the following manner:
<body>
   <header></header>
   <main>
      <section>
            <div class="supervisor-card"></div>
            <div class="team-card"></div>
            <div class="karma-card"></div>
            <div class="calculator-card"></div>
      </section>
   </main>
</body>

The Header Element represents the your site’s introductory content.

The Main Element identifies the main content of your content..

The Section Element is used to wrap content that is related to each other, which these four cards are.

Lastly, since none of the cards can stand on their own, a simple Div will do for each card.

  • Along with the Blank Alt Tag, you also want to include the aria-hidden=“true” to your icons to fully remove them from assistive technology.

  • Using CSS Grid with Grid-Template-Areas will make things way easier when building the layout; it will give you full control of the layout.

Here is an example of how it works: EXAMPLE

If you have any questions or need further clarification, let me know.

Happy Coding! 👻🎃

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