Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <div class="intro-header">
  <div class="container">
    <div class="row">
      <div class="col-md-6 col-sm-12">
        <button id="generateBtn" class="btn">Click For A Quote!</button>
          <blockquote class="block">
          <p id="showQuote"></p>
          </block>
      </div>
    </div>
    <!-- /.row -->
  </div>
  <!-- /.container -->
</div>

<!-- footer -->
<nav class="navbar navbar-default navbar-fixed-bottom">
  <div class="container-fluid">
    <div class="navbar-header">
      <ul class="nav navbar-nav">
        <li>
          <a href="https://www.facebook.com/andrew.charlebois" target="_blank" id="facebook"><i class="fa fa-facebook-official"></i></a>
        </li>
        <li>
          <a href="https://twitter.com/Andrew_Char" target="_blank" id="twitter"><i class="fa fa-twitter"></i></a>
          <li>
            <a href="https://github.com/andrewchar" target="_blank" id="github"><i class="fa fa-github-square"></i></a>
          </li>
          <li>
            <a href="https://www.freecodecamp.com/andrewchar" target="_blank" id="ffc"><i class="fa fa-fire"></i></a>
          </li>
          <li>
            <a href="https://www.linkedin.com/in/andrew-charlebois-a4b947113" target="_blank" id="linkedin"><i class="fa fa-linkedin-square"></i></a>
          </li>
          <li>
            <a href="https://www.codepen.io/andrewchar/" target="_blank" id="linkedin"><i class="fa fa-codepen"></i></a>
          </li>
      </ul>
    </div>
  </div>
  </div>
</nav>
              
            
!

CSS

              
                body,
html {
    width: 100%;
    height: 100%;
}

.intro-header {
    padding-top: 50px; 
    padding-bottom: 50px;
    color: #fff;
    background: url(https://s13.postimg.org/5b7v7lpdz/black_and_white_sport_fight_boxer.jpg) no-repeat center center;
    background-size: cover;
  height: 100%;
}

.block {
  margin-top: 10px;
}

#generateBtn {
  background-color: black;
  border-color: black;
  font-size: 1.2em;
  border-bottom-width: 2px;
  border-top-width: 2px;
}

#generateBtn:hover {
  color: #fff;
  border-color: white;
}


/* footer style */
 .navbar {
  background-color: black;
  display: inline-block;
   border-color: black;
} 

.nav {
  margin-left: 5px;
}

.social-media {
  list-style: none;
}

#facebook, #twitter, #github, #linkedin, #ffc {
 font-size: 1.5em; 
}  
  
.nav li {
  float: left;
}

i {
  color: white;
}
              
            
!

JS

              
                var quotes = [
  "Bruce Lee was an artist and, like him, I try to go beyond the fundamentals of my sport. I want the public to see a knockout in the making.<br /> <i> - Sugar Ray Leonard </i>",
  "Rhythm is everything in boxing. Every move you make starts with your heart, and that’s in rhythm or you’re in trouble.<br /> <i> - Sugar Ray Robinson </i>",
  "The question isn’t at what age I want to retire, it’s at what income.<br /> <i> - George Foreman </i>",
  "His mouth made him feel like he was gonna win. Not his hands, I had my hand. He had his lips.<br /> <i> - Joe Frazier </i>",
  "The tempt for greatness is the biggest drug in the world.<br /> <i> - “Iron” Mike Tyson </i>",
  "He can have heart, he can hit harder and he can be stronger, but there’s no fighter smarter than me.<br /> <i> - Floyd “Money” Mayweather Jr. </i>",
  "I fight for perfection<br /> <i> - Mike Tyson </i>",
  "Sure the fight was fixed. I fixed it with a right hand.<br /> <i> - George Foreman </i>",
  "The loss just made me hungry; it made me want to go out and win another title.<br /> <i> - Thomas “Hitman” Hearns </i>",
  "The fight is won or lost far away from witnesses—behind the lines, in the gym and out there on the road, long before I dance under those lights.<br /> <i> - Muhammad Ali </i>",
  "In order to be at the top and maintain your focus you have to have something that motivates you. For me, it was what I perceived as a lack of respect from the boxing world as well as the media,      which made me want to work so hard and be great.<br /> <i> - “Marvellous” Marvin Hagler </i>",
  "He saved my life, he saved my career. I can’t thank him enough for the chance to fight him.<br /> <i> - Ken Norton </i>",
  "Getting hit motivates me. It makes me punish the guy more. A fighter takes a punch, hits back with three punches.<br /> <i> - Roberto “Hands of Stone” Duran </i>",
  "The hero and the coward both feel the same thing, but the hero uses his fear, projects it onto his opponent, while the coward runs. It’s the same thing, fear, but it’s what you do with it that matters.<br /> <i> - Cus D’Amato </i>",
  "The possession of muscular strength and the courage to use it in contests with other men for physical supremacy does not necessarily imply a lack of appreciation for the finer and better things of life.<br /> <i> - Jack Johnson </i>",
  "If you screw things up in tennis, it’s 15-love. If you screw up in boxing, it’s your ass.<br /> <i> - Randall “Tex” Cobb </i>",
  "I’m not God, but I am something similar.<br /> <i> - Roberto “Hands of Stone” Duran </i>",
  "To see a man beaten not by a better opponent but by himself is a tragedy.<br /> <i> - Cus D’Amato </i>",
  "I was painfully initiated into boxing, because the guys I fought were a lot bigger than me.<br /> <i> - Sugar Ray Leonard </i>",
  "Boxing is the toughest and loneliest sport in the world.<br /> <i> - Frank Bruno</i>",
  "In boxing you create a strategy to beat each new opponent, it’s just like chess.<br /> <i> - Lennox Lewis</i>",
  "I hated every minute of training, but I said, ‘Don’t quit. Suffer now and live the rest of your life as a champion’.<br /> <i> - Muhammad Ali</i>",
  "It’s less about the physical training, in the end, than it is about the mental preparation: boxing is a chess game. You have to be skilled enough and have trained hard enough to know how many different ways you can counterattack in any situation, at any moment.<br /> <i> - Jimmy Smits</i>",
  "That’s the most beautiful thing that I like about boxing: you can take a punch. The biggest thing about taking a punch is your ego reacts and there’s no better spiritual lesson than trying to not pay attention to your ego’s reaction.<br /> <i> - David O Russell</i>",
  "To become a champion, fight one more round.<br /> <i> - James Corbett</i>",
  "A champion is someone who gets up when he can’t.<br /> <i> - Jack Dempsey</i>",
  "The man who has no imagination has no wings.<br /> <i> - Muhammad Ali</i>",
  "Don’t count the days, make the days count.<br /> <i> - Muhammad Ali</i>",
  "To be a champ you have to believe in yourself when no one else will.<br /> <i> - Sugar Ray Robinson</i>"];

function getRandom() {
  var myQuote = Math.floor(Math.random() * quotes.length);
  return quotes[myQuote];
}

var generateBtn = document.getElementById("generateBtn");
var quoteBox = document.getElementById("showQuote");
  
generateBtn.onclick = function() {
  quoteBox.innerHTML = getRandom();
}

quoteBox.innerHTML = getRandom();
              
            
!
999px

Console