Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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

              
                <html>
<body>
    <header>
        <div class="header-wrapper">
            <b class="orange-line line1"></b>
            <b class="orange-line line2"></b>
            <b class="orange-line line3"></b>
            <b class="orange-line line4"></b>
            <b class="orange-line line5"></b>
            <b class="orange-line line6"></b>
            <div class="image">
                <img src="https://stephanie.lol/css-grid/kickass/image.png" />
            </div>
            <h1 class="title">KICKASS FRIDAY</h1>
            <p class="subtitle sub1">collaborate</p>
            <p class="subtitle sub2">explore</p>
            <p class="subtitle sub3">create</p>
            <p class="schedule sched1">09.30 • Stand-up</p>
            <p class="schedule sched2">09.45 • Make awesome stuff</p>
            <p class="schedule sched3">12.00 • Lunch</p>
            <p class="schedule sched4">16.30 • Demo</p>


        </div>
    </header>
</body>

</html>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css?family=Share+Tech+Mono");

html,
body {
  max-width: 100%;
}

header {
  display: flex;
  margin: auto;
  min-height: 100vh;
}

p {
  font-family: "Share Tech Mono", monospace;
}

.header-wrapper {
  width: 90vw;
  display: grid;
  margin: auto;
  grid-column-gap: 10px;
  grid-template-columns: 20px 10px 10px 10px 10px 10px 10px auto 1fr;
  grid-template-rows: 0.5fr 1fr 5rem 0.5fr 2.5rem 2.5rem 2.5rem 0.5fr 1.5rem 1.5rem 1.5rem 1.5rem;
}

.title {
  font-family: "Arial Black";
  text-transform: uppercase;
  align-self: center;
  font-size: 3rem;
  grid-column: 1 / -1;
  grid-row: 3;
  line-height: 3rem;
}

.image {
  padding: 0.5rem;
  grid-column: 8 / 9;
  grid-row: span 2;
}

img {
  max-width: 100px;
  height: auto;
}

.orange-line {
  display: block;
  border-left: 10px solid #ffc000;
}

.line1 {
  grid-column: 2;
  grid-row: 2 / -1;
}

.line2 {
  grid-column: 3;
  grid-row: 2 / -1;
}

.line3 {
  grid-column: 4;
  grid-row: 2 / -1;
}

.line4 {
  grid-column: 5;
  grid-row: 2 / -1;
}

.line5 {
  grid-column: 6;
  grid-row: 2 / -1;
}

.line6 {
  grid-column: 7;
  grid-row: 2 / -1;
}

.subtitle {
  grid-column: 1 / -1;
  justify-self: start;
  font-size: 2rem;
  align-self: center;
}

.sub1 {
  grid-row: 5;
}

.sub2 {
  grid-row: 6;
}

.sub3 {
  grid-row: 7;
}

.schedule {
  grid-column: 3 / 10;
  font-size: 1rem;
  justify-self: start;
  align-self: center;
}

.sched1 {
  grid-row: 9;
}

.sched2 {
  grid-row: 10;
}

.sched3 {
  grid-row: 11;
}

.sched4 {
  grid-row: 12;
}

@media screen and (min-width: 420px) {
  .schedule {
    grid-column: 8 / 10;
  }
}

@media screen and (min-width: 768px) {
  .title {
    font-size: 3.7rem;
    line-height: 4.5rem;
  }
  .header-wrapper {
    width: 75vw;
    grid-template-rows: 0.4fr 0.8fr 5rem 0.5fr 3rem 3rem 3rem 0.5fr 2rem 2rem 2rem 2rem auto;
    transform: rotate(-15deg);
  }

  .schedule {
    font-size: 1.5rem;
    grid-column: 8 / 10;
    justify-self: start;
  }
  .subtitle {
    font-size: 2.5rem;
    grid-column: 1 / 8;
    justify-self: end;
  }

  .image {
    padding: 0.5rem;
    grid-column: 8 / 9;
    grid-row: span 2;
    transform: rotate(15deg);
  }

  img {
    max-width: 150px;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console