css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

              <link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
  <div class="container-fluid quote-gen">
    <button class="btn  btn-lg btn-dark" id= "generate" onclick="morrisseyGen()">GENERATE QUOTE</button>
    <p id= "newQuote"></p>
    <div id="container"></div>  
    <p id= "footer"> background image courtesy "https://cdn.americansongwriter.com/wp-content/uploads/2013/06/nAm8WsadGLX-5ZBdH9Krh-xOfsnssIB4P7jhe-vZkDA.jpg?b87883"</p>
              @import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,900);

body {
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.5)

    url(https://cdn.americansongwriter.com/wp-content/uploads/2013/06/nAm8WsadGLX-5ZBdH9Krh-xOfsnssIB4P7jhe-vZkDA.jpg?b87883)no-repeat center center fixed;
  background-size: cover;
  font-family: 'Source Sans Pro', sans-serif;

.quote-gen {

  color: white;
  text-align: center;

  margin-top: 60px;
  font-size : 46pt;

#footer {
  margin-top: 90%;

  background-color: gray;
  outline: gray;
  color: white;
  margin-top: 20px;
.btn-dark:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border-color: white;

              window.twttr = (function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0],
    t = window.twttr || {};
  if (d.getElementById(id)) return t;
  js = d.createElement(s);
  js.id = id;
  js.src = "https://platform.twitter.com/widgets.js";
  fjs.parentNode.insertBefore(js, fjs);
  t._e = [];
  t.ready = function(f) {
  return t;
}(document, "script", "twitter-wjs"));

var quotes = ["When they bury me in a church and chuck earth on my grave, I'd like the words 'Well, at least he tried' engraved on my tombstone.", "Artists aren't really people. I'm actually 40 per cent papier mache.","Life would be so colourful if only I had a drink problem.","Long hair is an unpardonable offense which should be punishable by death.","I am capable of looking on the bright side - I just don’t do it very often.","Unfortunately, I am not homosexual... In technical fact, I am humasexual. I am attracted to humans. But, of course, not many.","What's the first thing I do when I wake up in the morning? Wish I hadn't.","Music is like a drug, but there are no rehabilitation centres.","All human activity is fruitless when pitted against the girls and boys singing on pop television, for they have found the answer as the rest of us search for the question. I will sing, too. If not, I will have to die.","When I'm lying in my bed I think about life and I think about death and neither one particularly appeals to me.","Don't talk to me about people who are 'nice' cause I have spent my whole life in ruins because of people who are 'nice'.","I do maintain that if your hair is wrong, your entire life is wrong.","Age shouldn’t affect you. You’re either marvellous or you’re boring, regardless of your age.","I do think it's possible to go through life and never fall in love, or find someone who loves you.","Doing nothing gives me great pleasure. And believe me, I succeed wonderfully in it","I've never intended to be controversial but it's very easy to be controversial in pop music because nobody ever is.","If Jamie Oliver is so certain that flesh-food is tasty then why doesn't he stick one of his children in a microwave."

function morrisseyGen(a) {
  var randNum = Math.floor((Math.random() * 16) + 1);
  var quote = quotes[randNum].concat(" - Morrissey");

    text: quote

🕑 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.
Loading ..................