3) Basic Grid - mixmax

In this example below you will see how to do a 3) Basic Grid - mixmax with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by jobennett, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright jobennett ©
  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>3) Basic Grid - mixmax</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <div class="wrapper">
  <div> 
    <h2>Item A</h2> 
  </div>
  
  <div class="b"> 
    <h2>Item B</h2> 
  </div>
  
  <div> 
    <h2>Item C</h2> 
  </div>
  
  <div>
    <h2>Item D</h2> 
  </div>
  
  <div> 
    <h2>Item E</h2> 
  </div>
  
  <div> 
    <h2>Item F</h2> 
  </div>
  
</div>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/jobennett/3-basic-grid-mixmax-ybjVyO */
* {margin: 0; padding: 0;}

.wrapper>div {
  border: 1px solid black;
  padding: 10px;
}

.wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
/*   grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
  grid-gap: 1em;
}

/* .b {
  grid-column: auto / span 2;
} */

Comments