Do Grids Work?

In this example below you will see how to do a Do Grids Work? with some HTML / CSS and Javascript

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

<head>
  <meta charset="UTF-8">
  <title>Do Grids Work?</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <div class="grid-container">
  <div class="grid-item">asdf</div>
  <div class="grid-item">asdf</div>
  <div class="grid-item">asdf</div>
  <div class="grid-item">asdf</div>
  <div class="grid-item">asdf</div>
  <div class="grid-item">asdf</div>
  <div class="grid-item">asdf</div>
  <div class="grid-item">asdf</div>
  <div class="grid-item">asdf</div>
  <div class="grid-item">asdf</div>
  <div class="grid-item">asdf</div>
  <div class="grid-item">asdf</div>
  <div class="grid-item">asdf</div>
</div>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/0degreesk/do-grids-work-odRJrZ */
.grid-container { display: flex;  }
.grid-item { width: 25%; }

Comments