Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <header>
  <h1>Header Content</h1>
</header>

<section class="section_1">
<div class="triangle_div-1"></div>
  <div class="flex-container">
  <h1>Section Content</h1>
  <p>Professionally visualize proactive metrics vis-a-vis high standards in "outside the box" thinking. Assertively pursue vertical ideas without standards compliant interfaces. Compellingly e-enable lynergistically underwhelm technically sound leadership skills and premium quality vectors. Dramatically embrace effective opportunities without alternative benefits. Holisticly pursue cooperative services through ubiquitous web services. Rapidiously orchestrate standardized e-markets vis-a-vis effective communities. Globally predominate mission-critical experiences.ynergistically underwhelm technically sound leadership skills and premium quality vectors. Dramatically embrace effective opportunities without alternative benefits. Holisticly pursue cooperative services through ubiquitous web services. Rapidiously orchestrate standardized e-markets vis-a-vis effective communities. Globally predominate mission-critical experiences.ynergistically underwhelm technically sound leadership skills and premium quality vectors. Dramatically embrace effective opportunities without alternative benefits. Holisticly pursue cooperative services through ubiquitous web services. Rapidiously orchestrate standardized e-markets vis-a-vis effective communities. Globally predominate mission-critical experiences.ynergistically underwhelm technically sound leadership skills and premium quality vectors. Dramatically embrace effective opportunities without alternative benefits. Holisticly pursue cooperative services through ubiquitous web services. Rapidiously orchestrate standardized e-markets vis-a-vis effective communities. Globally predominate mission-critical experiences.ynergistically underwhelm technically sound leadership skills and premium quality vectors. Dramatically embrace effective opportunities without alternative benefits. Holisticly pursue cooperative services through ubiquitous web services. Rapidiously orchestrate standardized e-markets vis-a-vis effective communities. Globally predominate mission-critical experiences.ynergistically underwhelm technically sound leadership skills and premium quality vectors. Dramatically embrace effective opportunities without alternative benefits. Holisticly pursue cooperative services through ubiquitous web services. Rapidiously orchestrate standardized e-markets vis-a-vis effective communities. Globally predominate mission-critical experiences.</p>

  </div>
</section>

<section class="section_2">
<div class="triangle_div-2"></div>
    <div class="flex-container">
  <h2>Section Content</h2>
  <p>Professionally visualize proactive metrics vis-a-vis high standards in "outside the box" thinking. Assertively pursue vertical ideas without standards compliant interfaces. Compellingly e-enable lynergistically underwhelm technically sound leadership skills and premium quality vectors. Dramatically embrace effective opportunities without alternative benefits. Holisticly pursue cooperative services through ubiquitous web services. Rapidiously orchestrate standardized e-markets vis-a-vis effective communities. Globally predominate mission-critical experiences.</p>
  </div>
  </div>
</section>

<section class="section_3">
<div class="triangle_div-3"></div>
   <div class="flex-container">
  <h1>Section Content</h1>
  <p>Professionally visualize proactive metrics vis-a-vis high standards in "outside the box" thinking. Assertively pursue vertical ideas without standards compliant interfaces. Compellingly e-enable lynergistically underwhelm technically sound leadership skills and premium quality vectors. Dramatically embrace effective opportunities without alternative benefits. Holisticly pursue cooperative services through ubiquitous web services. Rapidiously orchestrate standardized e-markets vis-a-vis effective communities. Globally predominate mission-critical experiences.</p>
  </div>
</section>
              
            
!

CSS

              
                /*EACH "Triangle_div" is a triangle with the same color than the abode div*/
html{
  margin:0;
  padding!0;
  width:100%;
  height:100%;
}
body{
  width:100%;
  height:100%;
  font-family:Arial, sans-serif;
  font-size:16px;
  line-height:30px;
  padding:20px;
  margin:0;
}
*{
  box-sizing:border-box;
}
.flex-container {
  box-sizing: border-box;
  margin: 0 auto;
  padding: 10px 0;
}
@media (min-width: 540px) {
  .flex-container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .flex-container {
    max-width: 768px;
  }
}
@media (min-width: 992px) {
  .flex-container {
    max-width: 992px;
  }
}
@media (min-width: 1200px) {
  .flex-container {
    max-width: 1200px;
  }
}
/*PAGE STYLE*/
header {
  position: relative;
  height: 300px;
  background-color:#F5EFE5;
  display:flex;
  justify-content:center;
  align-items:center;
}
h1 {
  margin: 0;
  font: 44px "Arial";
  color: white;
  text-align:center;
}
h2 {
  margin: 10px 0;
  font: 34px "Arial";
  color: white;
  text-align:center;
}
/* SECTION 1*/
/*
section{
  overflow:hidden; /*or calc(100vw - 57px) in .triangle_div- border width
}*/
.section_1 {
  height:auto;
  background-color:#777;  
}
.section_1 p{
  width:50%;
  margin:0 auto;
  padding:20px;
  background-color:#fff;
}

.triangle_div-1{
    width: 0;
    height: 0;
    border-style: solid;
        border-width: 160px calc(100vw - 57px) 0 0;
    border-color: #F5EFE5 transparent transparent transparent;
}
/* SECTION 2*/
.section_2{
  height:100%;
  width:100%;
  background-color:#888;
  position:relative;
  padding-bottom:45px;
}
.triangle_div-2{
    width: 0;
    height: 0;
    border-style: solid;
       border-width: 160px calc(100vw - 57px) 0 0;
    border-color: #777 transparent transparent transparent;
}
/* SECTION 3*/
.section_3{
  height:500px;
  background-color:#999;
  position:relative;
}
.triangle_div-3{
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 160px calc(100vw - 57px) 0 0;
    border-color: #888 transparent transparent transparent;
}
              
            
!

JS

              
                
              
            
!
999px

Console