CSS Grid

responsive css grid with different size columns

by Glynne Turner

HTML

<section id="gradient" class="bg1">
  <div>
    <h1 class="shadow">
      Parralax Here
    </h1>

  </div>
</section>
<h1>
  The Grids
</h1>
<section class="half">
  <div class="olive">
    sxf<br /> sxf
    <br /> sxf
    <br /> sxf
    <br />

  </div>
  <div class="green">
    sxf

  </div>

</section>
<section class="third">
  <div class="pink">
    4 days ago - CSS Grid Layout excels at sdfsdfsdfsdfsdfsdfsdf a page into major regions or defining the relationship in terms of size, position, and layer, between parts of a control built from HTML primitives. Like tables, grid layout
    enables an author to align elements into columns and rows.

  </div>
  <div class="purple">
    sxf

  </div>
  <div class="red">
    sxf

  </div>
</section>

<section class=" third-two_third">
  <div class="yellow">
    4 days ago - CSS Grid Layout excels at dividing a page into major regions or defining the relationship in terms of size, position, and layer, between parts of a control built from HTML primitives. Like tables, grid layout enables an author to align elements
    into columns and rows.

  </div>
  <div class="orange">
    sxf

  </div>
</section>
<section class="  two_third-third ">
  <div class="red">
    4 days ago - CSS Grid Layout excels at dividing a page into major regions or defining the relationship in terms of size, position, and layer, between parts of a control built from HTML primitives. Like tables, grid layout enables an author to align elements
    into columns and rows.

  </div>
  <div class="green">
    sxf

  </div>
</section>
<section class="quarter">
  <div class="pink">
    4 days ago - CSS Grid Layout excels at dividing a page into major regions or defining the relationship in terms of size, position, and layer, between parts of a control built from HTML primitives. Like tables, grid layout enables an author to align elements
    into columns and rows.

  </div>
  <div class="olive">
    sxf

  </div>
  <div class="red">
    4 days ago -...

CSS

@import url(https://fonts.googleapis.com/css?family=Open+Sans);
 * {
   font-family: 'Open Sans', serif; /* These are technically the same, but use both */
  overflow-wrap: break-word;
  word-wrap: break-word;

  -ms-word-break: break-all;
  /* This is the dangerous one in WebKit, as it breaks things wherever */
  word-break: break-all;
  /* Instead use this non-standard one: */
  word-break: break-word;

  /* Adds a hyphen where the word breaks, if supported (No Blink) */
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
 }

 *,
 *:after,
 *:before {
   -webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
   box-sizing: border-box;
 }

 html,
 body {
   padding: 0;
   margin: 0;
 }

 section {
   display: grid;
   padding: 20px 10px;
   background-color: #e3e3e3;
   align-items: center;
   grid-column-gap: 1%;
   grid-row-gap: 1%;
   margin-top: 10px;
   overflow-x: hidden;
 }

 section>div {
   padding: 10px;
   height: 100%;
   overflow-wrap: break-word;
   word-wrap: break-word; /* These are technically the same, but use both */
  overflow-wrap: break-word;
  word-wrap: break-word;
 

  /* Adds a hyphen where the word breaks, if supported (No Blink) */
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
   hyphens: auto;
 }

 #gradient>div {
   text-align: center;
   margin: 0;
   padding: 50px;
   display: table-cell;
   vertical-align: middle;
   color: #ffffff;
   font-size: 30px;
   width: 100vw;
   
 }

 #gradient {
   height: 100vh;
   margin: 0;
   padding: 0;
   display: table;
   position: relative;
   padding: 0;
   -webkit-background-size: cover;
   -moz-background-size: cover;
   -o-background-size: cover;
   background-size: cover;
   background-attachment: fixed;
   background-position: center;
   background-repeat: no-repeat;
 }

 #gradient::after {
   content: '';
   position: absolute;
   height: 100%;
   width: 100%;
   left: 0;
   top: 0;
   bottom: initial;
  ...