cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div class="magazine">
  <div class="item title orange"><span class="emph">Divinity: Original Sin 2</span></div>
  <div class="item content1 blue">
    <p>
      Bacon ipsum dolor amet cupim buffalo shankle, ham fatback turducken drumstick sirloin. Jowl buffalo venison shank pork belly alcatra, tenderloin bacon ribeye picanha spare ribs fatback ham hock. Sirloin pork pancetta, landjaeger ham hock biltong meatloaf
      brisket shoulder. Filet mignon ground round chuck turkey rump capicola.
    </p>

    <p>
      Flank fatback bacon jerky picanha brisket ball tip cupim. Jerky fatback shankle andouille picanha cupim pancetta pork chop tongue corned beef pork loin ham hock rump tri-tip t-bone. Meatball turducken burgdoggen cupim salami bresaola. Boudin turkey bresaola,
      short ribs ribeye short loin meatloaf corned beef picanha t-bone. Fatback beef cupim pork chop.
    </p>

    <p>
      Tail short loin tenderloin turducken. Pancetta bacon beef ribs turducken leberkas. Biltong kevin buffalo porchetta, chicken meatloaf doner chuck sirloin shankle swine. Boudin bacon chicken, cupim filet mignon salami venison chuck tongue ham tenderloin
      cow.

      
      Chuck doner ham, chicken burgdoggen jerky short ribs picanha rump tenderloin ground round boudin cow shoulder beef.
    </p>
    
    <p>
      Doner ribeye flank shankle bacon. Alcatra shoulder buffalo cow short loin shankle. Chicken chuck beef rump pork chop pork belly pork loin leberkas filet mignon kielbasa meatloaf andouille meatball. Burgdoggen sausage hamburger, drumstick prosciutto meatball
      buffalo pork belly ground round shoulder. Brisket filet mignon meatloaf, shankle salami jerky flank pig kevin porchetta sirloin. Brisket meatloaf andouille burgdoggen sirloin pancetta. Burgdoggen capicola leberkas picanha tail.
    </p>

    <p>
      Ham pork loin t-bone rump bresaola ham hock tail jerky salami turducken. Bresaola rump pork loin filet mignon chicken turducken sirloin short loin cupim jerky sausage tongue doner andouille. Andouille buffalo pork chop turducken meatball frankfurter,
      leberkas short loin flank burgdoggen ham hock beef ham salami. Fatback kevin pig boudin, bresaola capicola leberkas doner short ribs alcatra chuck jerky filet mignon shank. Filet mignon swine rump, meatball cow prosciutto shoulder strip steak frankfurter
      biltong. Turducken t-bone ham hock, cow porchetta shoulder strip steak. Turkey pork loin strip steak, ground round ham burgdoggen picanha cupim buffalo pork chop jerky short loin kevin cow ham hock.
    </p>

    <p>
      Hamburger leberkas pastrami landjaeger ball tip. Boudin tenderloin pork chuck burgdoggen tail. Shankle cow turkey short ribs pork loin picanha tongue buffalo pancetta beef. Tail strip steak kevin frankfurter prosciutto.
    </p>

    <p>
      Prosciutto corned beef sirloin, cow alcatra landjaeger tongue swine pork belly. Biltong t-bone kevin, swine pig ham capicola jowl drumstick prosciutto sirloin frankfurter. Bacon leberkas drumstick pork belly pork, shoulder jerky turducken. Picanha andouille
      beef ribs pork belly chuck ribeye cupim biltong. Tail jerky short loin, rump short ribs sirloin strip steak.
    </p>
  </div>
  <div class="item content2 blue">
    <p>
      Bacon ipsum dolor amet cupim buffalo shankle, ham fatback turducken drumstick sirloin. Jowl buffalo venison shank pork belly alcatra, tenderloin bacon ribeye picanha spare ribs fatback ham hock. Sirloin pork pancetta, landjaeger ham hock biltong meatloaf
      brisket shoulder. Filet mignon ground round chuck turkey rump capicola.
    </p>

    <p>
      Flank fatback bacon jerky picanha brisket ball tip cupim. Jerky fatback shankle andouille picanha cupim pancetta pork chop tongue corned beef pork loin ham hock rump tri-tip t-bone. Meatball turducken burgdoggen cupim salami bresaola. Boudin turkey bresaola,
      short ribs ribeye short loin meatloaf corned beef picanha t-bone. Fatback beef cupim pork chop.
    </p>

    <p>
      Tail short loin tenderloin turducken. Pancetta bacon beef ribs turducken leberkas. Biltong kevin buffalo porchetta, chicken meatloaf doner chuck sirloin shankle swine. Boudin bacon chicken, cupim filet mignon salami venison chuck tongue ham tenderloin
      cow.

      
      Chuck doner ham, chicken burgdoggen jerky short ribs picanha rump tenderloin ground round boudin cow shoulder beef.
    </p>
    
    <p>
      Doner ribeye flank shankle bacon. Alcatra shoulder buffalo cow short loin shankle. Chicken chuck beef rump pork chop pork belly pork loin leberkas filet mignon kielbasa meatloaf andouille meatball. Burgdoggen sausage hamburger, drumstick prosciutto meatball
      buffalo pork belly ground round shoulder. Brisket filet mignon meatloaf, shankle salami jerky flank pig kevin porchetta sirloin. Brisket meatloaf andouille burgdoggen sirloin pancetta. Burgdoggen capicola leberkas picanha tail.
    </p>

    <p>
      Ham pork loin t-bone rump bresaola ham hock tail jerky salami turducken. Bresaola rump pork loin filet mignon chicken turducken sirloin short loin cupim jerky sausage tongue doner andouille. Andouille buffalo pork chop turducken meatball frankfurter,
      leberkas short loin flank burgdoggen ham hock beef ham salami. Fatback kevin pig boudin, bresaola capicola leberkas doner short ribs alcatra chuck jerky filet mignon shank. Filet mignon swine rump, meatball cow prosciutto shoulder strip steak frankfurter
      biltong. Turducken t-bone ham hock, cow porchetta shoulder strip steak. Turkey pork loin strip steak, ground round ham burgdoggen picanha cupim buffalo pork chop jerky short loin kevin cow ham hock.
    </p>

    <p>
      Hamburger leberkas pastrami landjaeger ball tip. Boudin tenderloin pork chuck burgdoggen tail. Shankle cow turkey short ribs pork loin picanha tongue buffalo pancetta beef. Tail strip steak kevin frankfurter prosciutto.
    </p>

    <p>
      Prosciutto corned beef sirloin, cow alcatra landjaeger tongue swine pork belly. Biltong t-bone kevin, swine pig ham capicola jowl drumstick prosciutto sirloin frankfurter. Bacon leberkas drumstick pork belly pork, shoulder jerky turducken. Picanha andouille
      beef ribs pork belly chuck ribeye cupim biltong. Tail jerky short loin, rump short ribs sirloin strip steak.
    </p>
  </div>
  <div class="item quote green">We both died. Twice. <br/> But I still felt really <br/> good about my decision.</div>
  <div class="item image red"></div>
  <div class="item score yellow"><span class="emph">score: 92</span></div>
</div>
            
          
!
            
              .magazine {
  width: 95vw;
  height: 90vh;
  outline: 6px solid #121219;
  display: grid;
  grid-template-rows: 130px 2fr 1fr;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  background: #e5e5e5;
}

.item {
  border: none;
  text-shadow: none;
  color: #000;
}

.title {
  grid-row: 1;
  grid-column: 1 / 3;
  z-index: 1;
  background: #f4d434;
  color: black;
  justify-content: start;
  align-items: end;
  text-transform: uppercase;
  font-weight: bold;
  font-size: calc(12px + 2.6vw);
  padding-left: 20px;
  display: grid;
}

.emph {
  transform: scaleY(1.5);
}

.image {
  grid-row: 1 / 3;
  grid-column: 2 / 5;
  background: url(https://gedd.ski/img/divinity-dragon.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.content1 {
  grid-row: 2 / 4;
  grid-column: 1 / 2;
  overflow: hidden;
  font-size: 16px;
  display: block;
}

.content2 {
  grid-row: 3 / 4;
  grid-column: 2 / 4;
  overflow: hidden;
  font-size: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 30px;
  align-items: start;
}

.content1, .content2 {
  padding: 10px 20px;
  font-size: 14px;
}

.quote {
  grid-row: 2;
  grid-column: 4;
  z-index: 2;
  background: rgba(0,0,0, .5);
  align-self: end;
  justify-self: start;
  position: relative;
  color: #e5d54f;
  border-left: 10px solid #e5d54f;
  padding: 10px;
  right: 125px;
  bottom: 6%;
  text-transform: uppercase;
  font-size: calc(12px + 1.1vw);
}

.score {
  grid-row: 3;
  background: #f4d434;
  width: 70%;
  height: 70%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 5px;
  font-size: calc(12px + 2.6vw);
  font-weight: bold;
  text-transform: uppercase;
}



            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console