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


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


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.


  <div class="container">
    <div class="row">
      <div class="section">
      <h1 class="center-align blue-grey-text text-darken-2">Quote Machine Generator</h1>
      <h5 class="center-align grey-text">Get inspired from our random quotes.</h5>
      <div class="divider"></div>
    <div class="row valign-wrapper">
        <div class="card-panel">
          <div class="card-content grey-text text-darken-3">
                        <blockquote class="flow-text" id="quote">
      This is an example quotation that uses the blockquote tag.
            <h6 class="flow-text right-align" id="author">Sorin Ruse</h6>
    </div><!-- end of wrapper -->
    <div class="divider"></div>
    <div class="row center-align">
      <div class="section">
        <a href="javascript:void(0)" class="btn waves-effect waves-light" onclick="getRandomQuote()"><i class="fa fa-cogs"></i>  New Quote</a>
      <a href="" class="btn waves-effect waves-light" target="_blank" id="tweetme"><i class="fa fa-twitter"></i>  Tweet It!</a>


                html, body{
  width: 100%;
  height: 100%;
  background-color: #eceff1;
  padding-bottom: 20px !important;
  margin-left: auto;
  margin-right: auto;
  width: 95%;
  border-color: #009688;
  font-style: italic;
  font-weight: 200;


                function getRandomQuote(){
    type: "GET",
    url: "",
    dataType: 'jsonp',
    success: function(data){        
        var tweet = '' + data.quoteText + ' Author: ' + data.quoteAuthor +' @sorinr';
       if (data.quoteAuthor !== ""){
       } else{
$('#tweetme').attr('href', tweet);
$( document ).ready(function() {