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 Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <div class="paper">
  <div class="banner">
    <h2>Game</h2>
    <h2>Over</h2>
    <h2>Game</h2>
    <h2>Over</h2>
    <h2>Game</h2>
    <h2>Over</h2>
  </div>
  <div class="heading">
    <h2 class="title_right">Extra!<br>Extra!</h2>
    <header class="title_center">
      <h1>The Daily Sun</h1>
      <h3>The World's Most Throwable Newspaper</h3>
    </header>
    <h3 class="title_right">Morning<br>Final</h3>
  </div>
  <h2 class="title">
    Paperboy Fired!
  </h2>
  <div class="body">
    <div class="col_1">
      <h3 class="al_l p_l">Accused of negligence, vandalism</h3>
      <p class="al_l indent">Blahblahbl blahbl blah blahb blahbl bla blahblahb blah blahb blahbl blahbla blahb blahbl bla blahblahb blah blahb blahbl blahbla</p>
      <hr />
      <h3 class="al_l">Daily sun subscription rate plummets</h3>
      <p class="al_l indent">Blahblahbl blahbl blah blahb blahbl</p>
    </div>
    <div class="col_2">
      <figure>
        <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1145795/paperboy.jpg" />
        <figcaption class="b_r b_b b_l">Blahblahbl blahbl blah</figcaption>
      </figure>
      <h3 class="al_l p_l">"He was a real loser!"</h3>
      <p class="al_l indent">Blahblahbl blahbl</p>
    </div>
    <div class="col_3 b_t b_r b_l p_t">
      <h3>"Worst ever!" claim irate customers</h3>
      <div class="cols_2">
        <div><p class="al_l p_l indent">Blahblahbl blahbl blah blahb blahbl bla blahblahb blah blahb blahbl blahbla blahblahbl blahbl blah blahb blahbl bla blahblahb blah blahb blahbl blahbla blahblahbl blahbl blah blahb blahbl bla blahblahb blah blahb blahbl blahbla ahbl blahbla blahblahbl blahbl blah blahb blahbl bla blahblahb blah blahb blahbl blahbla blahblahbl blahbl blah blahb blahbl bla blahblahb blah blahb blahbl blahbla</p></div>
        <div>
          <p class="al_l p_l p_r indent p_b">Blahblahbl blahbl blah blahb blahbl bla blahblahb blah blahb blahbl blahbla blahblahbl</p>
          <div class="p_t b_t b_l p_l p_r">
            <h3 class="al_l p_l">Daily Sun now hiring</h3>
            <p class="al_l indent">Blahblahbl blahbl blah blahb blahbl bla blahblahb blah blahb blahbl blahbla blahblahb blah blahb blahbl blahbla blahblahb blah blahb blahbl</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                $c_paper: #a7a7a7;
$c_bg: #01008a;
$c_red: #ca0302;
$c_text: #040404;
$gutter: 15px;

html { box-sizing: border-box; } *, *::before, *::after { box-sizing: inherit; }

html {
  font-size: 10px;
  height: 100%;
}
body {
  background: $c_bg;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  text-align: center;
  color: $c_text;
}
.al_l {
  text-align: left;
}
.p_t {
 padding-top: $gutter; 
}
.p_l {
  padding-left: $gutter;
}
.p_r {
  padding-right: $gutter;
}
.p_b {
  padding-bottom: $gutter;
}
.indent {
  text-indent: $gutter;
}
.b_t {
  border-top: 2px solid $c_text;
}
.b_r {
  border-right: 2px solid $c_text;
}
.b_b {
  border-bottom: 2px solid $c_text;
}
.b_l {
  border-left: 2px solid $c_text;
}

h1, h2, h3 {
  margin: 0;
}
h1 {
  font-size: 4.25rem;
  margin: $gutter 0;
  border-bottom: 2px solid $c_text;
}
h2 {
  font-size: 2.5rem;
  line-height: 4rem;
}
h3 {
  font-size: 1.5rem;
  line-height: 2.5rem;
  margin: 0 0 $gutter;
}
p {
  margin: 0;
}
hr {
  width: 75%;
  border: 0;
  border-bottom: 2px solid $c_text;
  margin: $gutter auto;
}
figure, img {
  width: 100%;
  display: block;
  margin: 0;
}
.paper {
  background: $c_paper;
  width: 960px;
  padding: $gutter $gutter 0;
  font-family: 'Press Start 2P', cursive;
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  overflow: hidden;
	opacity:0;
	
  animation: paper 1s linear forwards;

}
.banner {
  display: flex;
  justify-content: space-between; 
  color: $c_red;
  border-bottom: 2px solid $c_text;
  margin-bottom: $gutter;
  padding: $gutter/2 0;
}
.heading {
  display: grid;
  grid-template-columns: 1fr 4fr 1fr;
  grid-gap: $gutter;
  border-bottom: 2px solid $c_text;
}
.title {
  margin: $gutter/2 0;
}
.body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: $gutter;
}
.col_3 {
  grid-column: span 2;
}
.cols_2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: $gutter;
}
@keyframes paper {
  0%{
		opacity:0.2;
		transform:scale(0.2) rotate(0deg);
	}
	100%{
		opacity:1;
		transform:scale(1) rotate(1450deg);
	}
}


              
            
!

JS

              
                
              
            
!
999px

Console