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 includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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 id="mainbox">
  <i> </i><span id="text">Wow</span>
  <i> </i><span id="author"></span>
    <a href="" target="_blank" id="custom-tweet" class="tweet-style"><i class="fa fa-twitter fa-fw"></i>Share this on Twitter</a>
    <button class="btn" id="newquote">New Quote</button>


                #mainbox {
  width: 400px;
  border: 10px solid white;
  margin: 20px;
  padding: 10px;
  border-radius: 0%;
  color: white;
  margin: 0 auto;
  text-align: center;

#newquote {
  font-size: 16px;
  border: 2px solid blue;
  padding: 2px;

body {
  padding-top: 50px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  background-color: orange;


                  var quotePool = ["You live and you learn", "I'm always hungry for knowledge", "Food is life"];
  var authorPool = ["Chubaka", "Henry", "Elise"];
  var quote1 = "why wont this tweet";

  $("#newquote").on('click', myFunction);
  var options;

  function myFunction() {
    var rannum = Math.floor(Math.random() * quotePool.length);

    quote1 = quotePool[rannum] + ", " + authorPool[rannum];

    options = {
      text: quote1, // The Message
      via: 'Sean', // Via Refence your account
      related: 'freecodecamp', // Referals
      lang: 'en' // Language en = english
      .attr('href', twitterEndPoint + $.param(options));


  var twitterEndPoint = "";
  // Options We will pass

  // Update the custom-tweet button href attr
  // using $.param to url encode our options