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

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" >

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



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



/*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;
} */