css-grid -presentation- live-pen A

In this example below you will see how to do a css-grid -presentation- live-pen A with some HTML / CSS and Javascript

pen für livecoding in der präsentation

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

  <meta charset="UTF-8">
  <title>css-grid -presentation- live-pen A</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
body {
  width: 60vw;
  margin: 0 auto;

img {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  height: auto;
      <link rel="stylesheet" href="css/style.css">



  <div class="grid">
  <div class="box a">Box A</div>
  <div class="box b">Box B</div>
  <div class="box c">Box C</div>
  <div class="box d">Box D</div>
  <div class="box e">Box E</div>



/*Downloaded from https://www.codeseek.co/hmmh/css-grid-presentation-live-pen-a-QmOaEz */
.box {
  background: #c82506;
  color: #fff;

.grid {
  display: grid;
  grid-template-columns: 200px 1fr 15%;
  grid-gap: 1em;