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 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

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

              
                <link href="https://fonts.googleapis.com/css?family=Lobster|Raleway" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<link integrity="sha256-MfvZlkHCEqatNoGiOXveE8FIwMzZg4W85qfrfIFBfYc= sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous">

<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height" />

<body data-spy="scroll" data-target=".navbar" data-offset="0">
<!-- Fixed navbar --------------------------------------------------->
  <nav class="navbar navbar-default navbar-fixed-top">
    <div class="container">
      <a class="navbar-brand navbar-style" href="#">Michael H. Davis</a>
        
      <button class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
          <div class="icon-lines">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          </div>
        </button>

      <div id="navbar" class="navbar-collapse collapse navbar-responsive-collapse">
        <ul class="nav navbar-nav navbar-style pull-right">
          <li><a href="#">Home</a></li>
          <li><a href="#about-title">About</a></li>
          <li><a href="#portfolio-title">Portfolio</a></li>
          <li><a href="#contact-title">Contact</a></li>
        </ul>
      </div><!--.nav-collapse -->
    </div>
  </nav>

<!-- Jumbotron ------------------------------------------------------>
  <section class="jumbotron profile featurette">
    <div class="container">
      <div class="row">
        
        <div class="col-md-2 col-md-offset-1">
          <img class="smaller-image" id="profile-pic" src="https://pbs.twimg.com/profile_images/611301315264839681/43NNwpaH.jpg" alt="Picture of Me">
        </div>
          
        <div class="col-md-7 col-md-offset-1" id="jumb-info">   
          <p id="primary-content">Designs built from first principles.</p>
          <hr id="jumbo-divider">
          <div id="social-buttons">
            <a href="https://github.com/mhdavis" target="_blank"><i id="social-gh" class="fa fa-github-square fa-3x social-one"></i></a>
            <a href="https://twitter.com/M_HDavis" target="_blank"><i id="social-tw" class="fa fa-twitter-square fa-3x social-one"></i></a>
            <a href="#" target="_blank"><i id="social-gp" class="fa fa-google-plus-square fa-3x social-one"></i></a>
            <a href="#" target="_blank"><i id="social-em" class="fa fa-envelope-square fa-3x social-one"></i></a>
          </div>
        </div>
        
      </div>
    </div>
  </section>

<!-- About---------------------------------------------------------->
  <div class="container marketing">
    <div class="row">
      <h1 class="section-title" id="about-title">About</h1>
      <hr class="section-divider">
      <div class="col-md-6">
        <p> I'm a 23-year-old developer interested in all things coding and CS. I'm inspired  by a variety of sources seen in modern-day media. I formally received my B.A. in chemistry, which offers me a unique perspective on design and development of concepts.</p>
        <p>I've spent most of my life living abroad, and consider myself to be fairly worldly. I also tend to be very verbose.</p>
        <p>One of my favorite entreperneaurial heroes is Elon Musk, who is often quoted saying:<br></br></p>
        <p class="text-center" id="musk-quote">"Go back and think about it from first principles."<br></br></p>
        <p>What he means by this is, when faced with a new problem/challenge, one should always tackle the problem from a set of fundamental truths. In reference to his company <em>SpaceX</em> Musk went back and looked at the cost of rocket parts from an "atomic-rearrangement" perspective to see how his team could produce rockets at one-tenth the cost. I believe a similar approach can be taken towards design, in which emphasis on simplicity and accessibility should be placed.  
      </div>

      <div class="col-md-6">
        <h2 class="portfolio-headline">Programming and Work Skills</h2>
        <ul>
          <li>HTML/CSS</li>
          <li>jQuery</li>
          <li>JavaScript</li>
          <li>Python</li>
          <li>Java</li>
          <li>Microsoft Office<br>(Word, Excel, Powerpoint)</br></li>
        </ul>
      </div>
    </div>
  </div>

<!---- Portfolio ---------------First Row---------------------------->
  <div class="container">
    <div class="row">
      <a id="portfolio-title"></a>
      <h1 class="section-title">Portfolio</h1>
      <hr class="section-divider">
      
      <div class="col-lg-4 text-center">
        <img id="portfolio-display-one">
        <h2 class="portfolio-headline">Tribute Page</h2>
        <p class="portfolio-para">The project was to make a tribute page for a figure in history (past or present.) I chose Elon Musk.</p>
        <a href="https://codepen.io/mhdavis/pen/zKBPRy" target="_blank"><button type="button" class="btn btn-primary btn-lg outline">View Project</button></a>
      </div>
      
      <div class="col-lg-4 text-center">
        <img class="portfolio-display-generic">
        <h2 class="portfolio-headline">Coming Soon.</h2>
        <p class="portfolio-para">To a portfolio near you!</p>
        <div class="coming-soon-btn">
          <button type="button" class="btn btn-primary btn-lg outline coming-soon label success new-label"><span class="align">View Project</span><span class="add-label">Coming Soon</button>
        </div>
      </div>
      
      <div class="col-lg-4 text-center">
        <img class="portfolio-display-generic">
        <h2 class="portfolio-headline">Coming Soon.</h2>
        <p class="portfolio-para">To a portfolio near you!</p>
        <div class="coming-soon-btn">
          <button type="button" class="btn btn-primary btn-lg outline coming-soon label success new-label"><span class="align">View Project</span><span class="add-label">Coming Soon</button>
        </div>
      </div>
    </div>
    
<!--Portfolio-----------------Second Row----------------------------->
    <div class="row">
      <div class="col-lg-4 col-lg-push-2 text-center">
        <img class="portfolio-display-generic">
        <h2 class="portfolio-headline">Coming Soon.</h2>
        <p class="portfolio-para">To a portfolio near you!</p>
        <div class="coming-soon-btn">
          <button type="button" class="btn btn-primary btn-lg outline coming-soon label success new-label"><span class="align">View Project</span><span class="add-label">Coming Soon</button>
        </div>
      </div>
      
      <div class="col-lg-4 col-lg-push-2 text-center">
        <img class="portfolio-display-generic">
        <h2 class="portfolio-headline">Coming Soon.</h2>
        <p class="portfolio-para">To a portfolio near you!</p>
        <div class="coming-soon-btn">
          <button type="button" class="btn btn-primary btn-lg outline coming-soon label success new-label"><span class="align">View Project</span><span class="add-label">Coming Soon</button>
        </div>
      </div>
   </div>
 

<!-- Contact -------------------------------------------------------->
  <div class="container">
    <div class="row">
      <a id="contact-title"></a>
      <h1 class="section-title">Contact</h1>
      <hr class="section-divider">
    </div>
      
    <div class="row">
      <div class="col-lg-12 text-center" id="contact-topline">
      <h2 class="portfolio-headline">Feel free to reach out via one of these lovely platforms.</h2>
        <a href="https://github.com/mhdavis" target="_blank"><i id="social-gh" class="fa fa-github-square fa-3x social-two"></i></a>
        <a href="https://twitter.com/Zealjist" target="_blank"><i id="social-tw" class="fa fa-twitter-square fa-3x social-two"></i></a>
        <a href="https://plus.google.com/u/0/115062458775413516354"><i id="social-gp" class="fa fa-google-plus-square fa-3x social-two"></i></a>
        <a href="https://mail.google.com/mail/u/0/#inbox" target="_blank"><i id="social-em" class="fa fa-envelope-square fa-3x social-two"></i></a>
      </div>
    
    <div class="row">
      <div class="portfolio-headline col-lg-12 text-center" id="contact-bottomline">
           <p>I'm also on freecodecamp!</p>
           <a href="https://www.freecodecamp.com/mhdavis" target="_blank"><button type="button" class="btn btn-primary btn-lg outline" id="fcc-button">My FCC Page</button></a>
      </div>   
    </div>
  </div>
   <hr class="section-divider"> 
    
   <p class="pull-right"><a href="#"><button type="button" class="btn btn-primary btn-lg outline" id="back-top">Back to top</button></a>
</body>
              
            
!

CSS

              
                
body {
 font-family: 'Raleway', , sans-serif;
 font-size: 18px;
 color: black;
}

/*NAVBAR
----------------------*/
.navbar .navbar-brand {
  color: white;
  border-color: transparent;
}

.navbar .navbar-brand:hover {
  color: #f382ad;
}

.navbar-default .navbar-nav>li>a {
  color: white;
}

.navbar-default .navbar-nav>li>a:hover {
  color: #f382ad;
}

.navbar-default .navbar-nav>li>a:focus{
    color: white;
    background-color: transparent;
}

.navbar {
  background-color: black;
}

.navbar-default .navbar-collapse, .navbar-default .navbar-form {
    border-color: transparent; /*Removes white bar that appears when page seen in mobile mode*/
}

.navbar-default .navbar-brand:focus{
    color: white;
    background-color: transparent;
}

.navbar-default .navbar-toggle:focus {
    background-color: black;
}

.navbar-style {
 	font-family: Lobster;
	font-size: 28px;
	font-style: normal;
	font-variant: normal;
	font-weight: 500;
	line-height: 26.4px;
}


/*JUMBOTRON
------------------------*/
.jumbotron {
  display: flex;
  align-items: center;
  background-image: url(http://www.technocrazed.com/wp-content/uploads/2015/11/HD-Galaxy-Wallpapers-Free-Download-138.jpg);
  background-size: cover;
  color: #000000;
  height: 500px;
  text-shadow: 0.25px 0.25px 0.25px #000000;
  padding-bottom: 15px;
  
}

#profile-pic {
  border-color: white;
  border-width:10px;
  border-style: solid;
  border-radius: 50%;
  width: 275px;
  margin-bottom: -80px;
}

#primary-content {
  font-family: Lobster;
  color: white;
	font-size: 42px;
	font-style: normal;
	font-variant: normal;
	font-weight: 500;
	line-height: 26.4px;
}

#jumb-info {
  padding-top: 110px;
  padding-left:30px;
  
}

#jumbo-divider {
  border-color: white;
  border-width: 5px;
  margin-right: 95px;
}

/*MARKETING / SECTIONS GENERIC
------------------------------------*/
.section-title {
  font-size: 45px;
  font-family: Lobster;
  color: black;
}

.section-divider {
  border-color: black;
  border-width: 5px;
  margin-top: 15px;
  margin-bottom:25px;
}

.marketing .col-lg-4 {
  margin-bottom: 20px;
  text-align: center;
}
.marketing h2 {
  font-weight: normal;
}
.marketing .col-lg-4 p {
  margin-right: 10px;
  margin-left: 10px;
}

/*ABOUT SECTION
--------------------------*/
#about-title {
  margin-top: -1px;
  
}

#musk-quote {
  font-family: Lobster;
	font-size: 26px;
	font-style: normal;
	font-variant: normal;
	font-weight: 500;
	line-height: 26.4px;
  padding-bottom: 15px;
  color: black;
}

li {
  font-size: 28px;
}

/*PORTFOLIO SECTION
--------------------------*/
#portfolio-display-one {
  background: url(http://a.abcnews.com/images/Technology/ap_elon_musk_jc_151007_12x5_1600.jpg) center center/cover no-repeat;
  background-position: 70% 50%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
}

.portfolio-display-generic {
  background: url(data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==) center center/cover no-repeat;
  width: 300px;
  height: 300px;
  border-radius: 50%;
}

.portfolio-headline {
  font-family: Lobster;
	font-size: 38px;
	font-style: normal;
	font-variant: normal;
	font-weight: 500;
	line-height: 26.4px;
  padding-bottom: 15px;
  color: black;
}

.portfolio-para {
  padding-bottom: 8px;
}

/*OUTLINE BUTTONS
-------------------------------------*/
.btn.outline {
    background: none;
    padding: 12px 22px;
    font-family: Lobster;
    font-size: 22px;
    font-style: normal;
    font-variant: normal;
    font-weight: 500;
    line-height: 26.4px;
}

.btn-primary.outline {
    border: 2px solid black;
    color: black;
    margin-bottom: 25px;
}

span.add-label{
 display:none;
}
.coming-soon-btn:hover span.align{
 display:none;
}
.coming-soon-btn:hover span.add-label{
 display:block;
}

.btn-primary.outline:hover, .btn-primary.outline:focus, .btn-primary.outline:active, .btn-primary.outline.active, .open > .dropdown-toggle.btn-primary {
    color: #f382ad;
    border-color: #f382ad;
}

.btn-primary.outline:active, .btn-primary.outline.active {
    border-color: white;
    color: white;
    background: black;
    box-shadow: none;
}

/*CONTACT
------------------------*/
#contact-topline {
  margin-top: 50px;
  margin-bottom: 50px;
}

#contact-bottomline {
  margin-bottom: 40px;
}

#fcc-button {
  margin-top: 40px;
  font-size: 30px;
}

#back-top {
  background-color: black;
  border-color: white;
  font-family: Lobster;
	font-size: 25px;
	font-style: normal;
	font-variant: normal;
	font-weight: 500;
	line-height: 26.4px;
  padding-bottom: 15px;
  color: white;
}

#back-top:hover {
  color: black;
  background-color: white;
  border-color: black;
}

/*SOCIAL MEDIA BUTTONS
------------------------*/
.social-one:hover {
     -webkit-transform: scale(1.1);
     -moz-transform: scale(1.1);
     -o-transform: scale(1.1);
 }
 .social-one {
     -webkit-transform: scale(0.8);
     /* Browser Variations: */
     
     -moz-transform: scale(0.8);
     -o-transform: scale(0.8);
     -webkit-transition-duration: 0.5s;
     -moz-transition-duration: 0.5s;
     -o-transition-duration: 0.5s;
     color: white;
 }

.social-two {
  margin-top: 30px;
  margin-left: 30px;
  margin-right: 30px;
}

.social-two:hover {
     -webkit-transform: scale(2.2);
     -moz-transform: scale(2.2);
     -o-transform: scale(2.2);
 }
 .social-two {
     -webkit-transform: scale(1.5);
     /* Browser Variations: */
     
     -moz-transform: scale(0.8);
     -o-transform: scale(0.8);
     -webkit-transition-duration: 0.5s;
     -moz-transition-duration: 0.5s;
     -o-transition-duration: 0.5s;
     color: black;
 }

/*
    Multicoloured Hover Variations
*/
 #social-gh:hover {
     color: #545454;
 }
 #social-tw:hover {
     color: #4099FF;
 }
 #social-gp:hover {
     color: #d34836;
 }
 #social-em:hover {
     color: #f39c12;
 }
              
            
!

JS

              
                
              
            
!
999px

Console