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.

            
              <main id="main">
  <header class="" id="header-block">
    <h1 id="title">Antoine de Saint-Exupéry</h1>
    <p id="subtitle">Aviator, Author, Prince of Ours.</p>
    <hr />
  </header>
  <figure id="img-div">
    <img src="https://upload.wikimedia.org/wikipedia/commons/6/68/Antoine_de_Saint-Exup%C3%A9ry.jpg" alt="Saint-Exupéry in a Boat Trip in 1942." id="image">
    <figcaption class="caption" id="img-caption">A Photograph of Saint-Exupéry in a Boat Trip in 1942.</figcaption>
  </figure>
  <section id="tribute-info">
    <article class="" id="my-story">
      <h2>How was it all started by ?</h2>
      <p> When I was in the middle school, my teacher asked me to find a book to perform in front of the class whithin 2 weeks. At first, I knew really well about myself that I was far from being book worm enough, but then some random findings on an online
        bookstore brought me to this man whom later I recognize him from "The Little Prince". A book of about 90's of pages that has changed the way how I put myself against the world. This book gives me an interesting way to see from a different perspectives,
        as an adult, from my own pasts as a kid.</p>
    </article>
    <article class="" id="some-quote">
      <blockquote cite="https://en.wikiquote.org/wiki/The_Little_Prince">
        <p id="quote">Here is my secret. It is very simple:<br />It is only with the heart that one can see rightly; what is essential is invisible to the eye.</p>
        <footer id="quote-ref">-The Fox, Chapter XXI.</footer>
      </blockquote>
    </article>
    <article class="" id="short-bio">
      <div id="bio-img">
        <figure>
          <img src="https://upload.wikimedia.org/wikipedia/commons/7/7f/11exupery-inline1-500.jpg" alt="Saint-Exupéry Standing in Front of His P-38 Lightnings in 1933." id="image-2">
          <figcaption class="caption">Saint-Exupéry Standing in Front of His P-38 Lightnings in 1933.</figcaption>
        </figure>
      </div>
      <div id="bio-overview">
        <h2>Biography Overview</h2>
        <p>Antoine Marie Jean-Baptiste Roger, comte de Saint-Exupéry, simply known as Saint-Exupéry (French: [ɑ̃twan də sɛ̃tɛɡzypeʁi]; 29 June 1900 – 31 July 1944), was a French writer, poet, aristocrat, journalist and pioneering aviator. He became a laureate
          of several of France's highest literary awards and also won the United States National Book Award. He is best remembered for his novella The Little Prince (Le Petit Prince) and for his lyrical aviation writings, including Wind, Sand and Stars
          and Night Flight.</p>
        <a href="https://en.wikipedia.org/wiki/Antoine_de_Saint-Exup%C3%A9ry" target="_blank" id="tribute-link">Read A More Comprehensive Bio of Him at Wikipedia Here.</a>
      </div>
    </article>
  </section>
  <footer id="page-footer">
    <p>Copyright (c) 2019 <a href="https://twitter.com/Ronanharris4" class="text-no-decoration">Ronan Harris</a> All Rights Reserved.</p>
    <br />
    <div id="legal-info">
      <p> Source Code are Licensed Under MIT License.</p>
      <p>Some Texts and Images are Taken From Wikipedia, Redistributed, and Licensed Under <a href="https://creativecommons.org/licenses/by-sa/3.0/">CC BY-SA 3.0</a></p>
    </div>
  </footer>
            
          
!
            
              a {
 color: #222;
 font-weight: 900;
 text-decoration-color: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
li,
p,
pre,
blockquote,
figure,
hr {
  margin: 0;
  padding: 0;
}

header {
  flex-direction: row;
  margin-top: 10%;
  text-align: center;
}

hr {
  border: none;
  border-top: .3rem solid #222;
  display: block;
}

html {
  color: #222;
  font-family: Roboto;
  font-size: 16px;
}

img {
  box-shadow: 5px 5px .3px .3px #222;
  display: block;
  margin: auto;
  max-width: 100%;
  width: auto;
}

main {
  background-color: #f6f6f6;
  display: flex;
  flex-direction: column;
  margin: auto;
  max-width: 50%;
  padding: 2vh 0 0 0;
}

.caption {
  font-style: italic;
  font-weight: 900;
  margin-top: 1rem;
  text-align: center;
}

.text-no-decoration {
  text-decoration: none;
}

#bio-img {
  min-width: 50%;
}

#bio-overview {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 0 2.5rem 2.5rem;
  text-align: justify;
}

#bio-overview p {
  font-weight: 500;
  line-height: 1.5;
  text-indent: 3rem;
}

#header-block {
  margin-bottom: 4rem;
  padding: 0 6vw;
}

#img-div {
  margin-bottom: 4rem;
  text-align: center;
}

#legal-info {
  color: #bbb;
  font-style: italic;
  font-weight: 700;
}

#my-story {
  background-color: #222;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 4rem;
  max-width: 100%;
  padding: 2rem 6vw;
  position: inherit;
  text-align: center;
  transform: skewY(-4.5deg);
}

#my-story p {
  margin-top: 2rem;
  text-align: justify;
  text-indent: 3rem;
}

#page-footer {
  background-color: #222;
  color: #fff;
  padding: 1rem;
  text-align: center;
}

#page-footer a {
  color: inherit;
}

#quote {
  font-size: 2.5rem;
  font-weight: 300;
}

#quote-ref {
  font-size: 2rem;
  font-weight: 900;
  margin-top: 1rem;
}

#short-bio {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4rem;
  padding: 0 6vw;
}

#some-quote {
  border: 5px dashed #222;
  margin: 0 6vw;
  margin-bottom: 4rem;
  padding: 1.5rem;
}

#subtitle {
  font-size: 2em;
  font-weight: 300;
  margin-bottom: 1em;
}

#title {
  font-size: 4em;
  font-weight: 400;
}

@media screen and (max-width : 1600px) {
  main {
    max-width: 75%;
  }

  #bio-overview {
    justify-content: center;
    margin-top: 0;
    padding: 0 0 0 2rem;
  }

  #bio-overview h2, #bio-overview p, #bio-overview a {
    margin-bottom: 2rem;
  }
}

@media screen and (max-width : 1024px) {
  main {
    max-width: 100%;
  }

  #bio-overview {
    justify-content: center;
    margin-top: 0;
    padding: 0 0 0 2rem;
  }

  #bio-overview h2, #bio-overview p, #bio-overview a {
    margin-bottom: 2rem;
  }
}

@media screen and (max-width : 720px) {
  img {
    width: 80%;
  }

  #bio-overview {
    justify-content: center;
    margin-top: 4rem;
    padding: 0 2rem;
  }

  #bio-overview h2 {
    text-align: center;
  }

  #short-bio {
    flex-direction: column;
    margin-bottom: 2rem;
    padding: 0;
  }

  #page-footer {
    font-size: .75em;
    padding: 1rem;
  }

  #quote {
    font-size: 1.75em;
  }

  #quote-ref {
    font-size: 1.5em;
  }

  #subtitle {
    font-size: 1.5em;
  }

  #title{
    font-size: 2.75em;
  }
}

            
          
!
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