123

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.

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.

            
              <head>
  <meta charset="utf-8">
  <title>Bonnie and Clyde</title>
</head>

<body>
  <nav>
    <ul>
      <li> <a href="#">Learn</a>
      <li> <a href="#">Books by level</a>
      <li> <a href="#">Profile</a>
      <li> <a href="#">Messages</a>
      </li>
    </ul>
  </nav>
  
      <div class="wrapper-global">
  <main>
  
        <div class="book-wrapper">


          <h1>Bonnie <br><span>and</span><br> Clyde</h1> 
            <p id="author"> By: Dorothy Priest <br><br> <span class="frontispiece">Synopsis</span> 
          </p>
            <p id="description">
           
              Bonnie and Clyde were two American<br> bank robbers.
              They robbed banks in <br>
              small towns. <br>
              People laughed at the police because <br>
              they couldn't catch the two bandits. <br>
              Bonnie and Clyde wanted to rob a big, <br>
              important bank,so they went to <br>
              Chicago. <br>
              They robbed the bank but when they <br>
              came out, they were captured.
            </p>
          </div>
          <hr>
          <h2>Chapter 1 <br>In the town chasing by police men</h2>
          <div id="page1">The police sirens woke <sup>1</sup>  everybody in the small<br> town in Tenessee. <br>
        The people came out of their house to see them.<br>
            A white Ford car raced down the road.<br>
            Five,six,seven police cars followed it.<br>
            A woman put her head out of the Ford <br>
            and fired <sup>2</sup> a gun.<br>
            The bullet <sup>3</sup> hit the first police cars.<br>
            It zig-zagged <sup>4</sup> accross the road and <br>
            crashed into the tree. 
            <br>
          <img class="car"
               src="https://media.gettyimages.com/photos/faye-dunaway-being-shot-in-a-scene-from-the-film-bonnie-and-clyde-picture-id128009701" alt="">
          <br>
            <ol>
              <li>Woke: is the past tense of wake</li>
              <li>to fire: to shoot a gun</li>
              <li>bullet: a piece of metal fired from a gun</li>
              <li>to zig-zag: to go from left to right</li>
          </ol>
            <br>
          <span id="page-1"> Page 1</span>
          
          </div>
          </div>
  </main>
  
        </div>
  
</body>



            
          
!
            
              * {
  margin: 0;
  padding: 0;
  font-family: Sans-serif;
  font-size: 16px;
  
}
ul {
  text-decoration: none;
  list-style: none;
}
body {
  background-color: white;;
}
/*  navigation */
nav {
  width: 100%;
  height: 70px;
  background-color: #ced6c9;
}
nav ul {
  margin-left: 20%;
}

nav ul li {
  display: inline;
  line-height: 70px;
  
}
nav ul li a {
  color: #2a2b29;
  padding: 10px;
}
/*     -------     MAIN      ------      */
main  {
  background-color: #d8e8cc;
}
.wrapper-global {
  width: 1000px;
  margin: 0 auto;
}
.book-wrapper {
  width: 600px;
  margin: 0 10px;
  background-color: #c7dddd
}
h1 {
  font-size: 35px;
  color: green;
  text-align: center;
  text-transform: uppercase;
  padding: 10px 0;
  margin-top: 5px;
}

#author {
  text-align: center;
  padding-bottom: 10px;
}
.frontispiece {
  border: 1px solid grey;
  padding: 5px;
}
#description {
  border: 1px solid #141612;
  border-radius: 7px;
  background-color: white;
  padding: 20px;
  width: 300px;
  margin: 20px auto;
  line-height: 30px;
  
}

/* pages of the book */
#page1 {
  padding: 50px;
  border: 1px dashed red;
  width: 500px;
  margin: 10px auto;
  background-color: white;
  border-radius: 5px;
  line-height: 25px;
}
.car {
  width: 500px;
  height: 150px;
  display: block;
  margin: 0 auto;
border-radius: 7px;
  
}

#page-1 {
  display: block;
  text-align: center;
  color: red;
}
h2 {
  text-align: center;
  margin-top: 10px;
}
sup {
    vertical-align: super;
    font-size: smaller;
}







            
          
!
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.

Console