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.

              <div class="container">
  <h1>&quot;Quote of The Day&quot;</h1>
  <div class="quote-box">
    <div class="col-md-12">
      <div class="row"><i class="fa fa-quote-left"></i>
        <span id="quoteDisplay"></span>
      <div class="buttons">
        <span id="tweet">
          <a href="yo" data-toggle="tooltip" title="Tweet the Quote" target="_blank">
            <button class="btn raise" onclick="tweetIt()" id=tweetbutton><i class="fa fa-twitter"></i></button>
        <button class="btn btn-primary raise" onclick="changeColor(); newQuote();" id="newquote">New Quote</button>
              @import url(,500);
  font-family: 'Pacifico', cursive;
  text-align : center;
  font-size: 50px;
  color: white;
    margin:5% auto auto auto;
    padding:40px 40px;
    background-color : #f7f7f7;
    font-family: 'Raleway', sans-serif;
    font-size: 22px;
    text-align: center;
    font-size: 1em;
    margin-right: 0.7em;
  max-width :500px;
  padding: 10px 10px 10px 10px;
.raise:hover {
  transform: translateY(-0.15em);
              var quotes=[
    'Don\'t cry because it\'s over, smile because it happened. ― Dr. Seuss',
    'Be yourself, everyone else is already taken. ― Oscar Wilde',
    'Two things are infinite: the universe and human stupidity, and I\'m not sure about the universe. ― Albert Einstein',
    'A room without books is like a body without a soul. ― Marcus Tullius Cicero',
    'You only live once, but if you do it right, once is enough. ― Mae West',
    'Be the change that you wish to see in the world. ― Mahatma Gandhi',
    'In three words I can sum up everything I\'ve learned about life: it goes on. ― Robert Frost',
    'If you tell the truth, you don\'t have to remember anything. ― Mark Twain',
    'Always forgive your enemies; nothing annoys them so much. ― Oscar Wilde',
    'If you want to know what a man\'s like, take a good look at how he treats his inferiors, not his equals. ― J.K. Rowling',
    'Success is getting what you want. Happiness is wanting what you get. ― Dale Carnegie',
    'Anytime you see a turtle up on top of a fence post, you know he had some help. ― Alex Haley',
    'There is much pleasure to be gained from useless knowledge. ― Bertrand Russell',
    'Don\'t pray when it rains if you don\'t pray when the sun shines. ― Satchel Paige',
    'The foot feels the foot when it feels the ground. ― Buddha',
    'Nothing makes one feel so strong as a call for help. ― Pope Paul VI',
    'You can get assent to almost any proposition so long as you are not going to do anything about it. ― Nathaniel Hawthorne'
var currentQuote='';
function newQuote() {
    var randomNumber=Math.floor(Math.random()*quotes.length);
    document.getElementById('quoteDisplay').innerHTML = currentQuote;
function changeColor() {
    var colors=[
        '#16a085', '#27ae60', '#2c3e50', '#f39c12', '#e74c3c', '#9b59b6', '#FB6964', '#342224', "#472E32", "#BDBB99", "#77B1A9", "#73A857"
    var selectedColor=colors[Math.floor(Math.random()*colors.length)];
function tweetIt() {
    var link=''+currentQuote;
🕑 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.