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.


                <h1 class="text-center">Great Random Technology Quotes</h1>
<div class="container">

      <div class="randomQ">
        <h2 class= "quotes"></h2>
      <div class="randomA">
        <h4 class="authors pull-right"></h4>
      <div class="button-sec">
        <button><a href=# class = "fa fa-twitter" id= "tweet"> Tweet</a></button>
      <button class="btn q-button pull-right">New quote</button>


                .container {
  background-color: #40D1E8;
  margin-top: 80px;
  padding: 80px;
  width: 50%; 
  height: auto;

.button-sec {
  margin-top: 50px;
  padding-top: 50px;

.btn {
  display: block;
  margin: auto;


  var randomQ;
  var randomAuthors;
  var randomNum;
  function randomQuotes(){
  var quotes = ["Technology is anything that wasn’t around when you were born. ", "Any sufficiently advanced technology is equivalent to magic.", "All of the biggest technological inventions created by man - the airplane, the automobile, the computer - says little about his intelligence, but speaks volumes about his laziness.", "Just because something doesn’t do what you planned it to do doesn’t mean it’s useless.", "It has become appallingly obvious that our technology has exceeded our humanity.", "One machine can do the work of fifty ordinary men.  No machine can do the work of one extraordinary man.", ]
  var authors = ["-Alan Kay (Computer Scientist)", "-Arthur C. Clarke (Author)", "-Mark Kennedy (Author)", "-Thomas Edison (Inventor)", "-Albert Einstein (Scientist)", "-Elbert Hubbard (Author)"]
  randomNum = Math.floor(Math.random() * quotes.length);
    randomQ = quotes[randomNum];
    randomAuthors = authors[randomNum];
    $(".quotes").text('"' + randomQ + '"');
  $("#tweet").on("click", function(){"" + randomQ + " " + randomAuthors);
  $(".q-button").on("click", function(){