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

Finished this ANNOYING PROJECT, FOUR Card feature section project

@Randomgituser69

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


What are you most proud of, and what would you do differently next time?

Atleast making it come close

What challenges did you encounter, and how did you overcome them?

I was having no idea how can i put each item to different sides like left,right,top or bottom. I tried many ways but it didn't work. At one time i set the display of the container that includes cards to grid then gap some pixels or fr which i forgot how much and then grid template column to 1fr 1fr 1fr or something like that and that fixed the problem

What specific areas of your project would you like help with?

Idk

Community feedback

@Isabela-Fernanda

Posted

Hello, I took a look at your code and some tips I can give you are:

  1. Create a separate file just for styling (style.css, for example);
  2. In HTML, the <div class="head"> can be replaced by the <header> tag and placed outside the main, this would make your HTML more semantic and make it easier to style the <main> (you wouldn't need the < div class="grid-container">, you could simply make the div of the cards);
  3. I recommend you take a look at the grid-template-areas property, it makes it much easier to work with the grid in this type of design. I'll put below a code example on this property that would solve this design with just a few space changes between items.
main {
        display: grid;
        grid-template-areas: "card1 card2 card4" "card1 card3 card4";
      }   
.card1 {
    grid-area: card1;
  }
.card2 {
    grid-area: card2;
  }
.card3 {
    grid-area: card3;
  }
.card4 {
    grid-area: card4;
  }
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