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

              
                <body data-spy="scroll" data-target=".navbar" data-offset="10">
  
<!--Navigation Bar-->
<nav class="navbar navbar-default navbar-fixed-top" >
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#nav-collapsed" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span><!--for screen readers-->
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#intro">CuleCoding</a>
    </div>
    
    <div class="collapse navbar-collapse" id="nav-collapsed">
      <ul class="nav navbar-nav navbar-right">
        <li><a href="#intro">Home</a></li>
        <li><a href="#about-section">About me</a></li>
        <li><a href="#projects-section">My projects</a></li> 
        <li><a href="#contact-section">Contact me</a></li> 
      </ul>
    </div>
  </div>
</nav>
<!--end of navigation bar-->
<!--start of header-->
  <header id="intro">
   <div class="transparency-box">
    <div class="container">     
      <div class="row heading">
        <div class="col-sm-8 col-sm-offset-2">                    
            <h1>Portfolio</h1>
          <h3>of <span class="name">Oliver Cule</span></h3>
            <hr class="head">
            <h2>My journey learning to code</h2>  
        </div>    
      </div>
      <div class="row down-arrow">
        <div class="col-sm-12 ">
          <i class="fa fa-chevron-circle-down" aria-hidden="true"></i>           </div>
      </div>          
     </div><!--end of container--> 
  </div><!--end of box-->
  </header> <!---/header--->
  <div class="container-fluid">
    <div><hr class="separator">       </div>
  </div>
<!--start of about me--->
<section id="about-section"> <!--HTML5 tag-->
  <div class="container">
   <div class="row">
     <div class="col-sm-6">
      <h2>ABOUT ME</h2>
      <hr class="content">
      <p> Hello, my name is Oliver Cule. I live on the Isle of Wight with my wife and children. I work in healthcare where I am also an educator. My interest in web development and applications started when I wanted to make a website for my students, FreeCodeCamp is teaching me how I can achieve this. This webpage is one of the FreeCodeCamp projects "Build a Personal Portfolio Webpage". </p>
     </div>    
     <div class="col-sm-5 col-sm-offset-1">
      <img class="img-responsive img-circle" src="https://res.cloudinary.com/deyh3ywme/image/upload/c_scale,w_200/v1479490562/desktopbackground_rxehvg.jpg" alt="apple and stethoscope">
     </div>
   </div> 
  </div>  
</section> <!--end of about me-->
<div class="container-fluid">
  <div><hr class="separator"></div>
  </div>
<!--start of projects-->
<section id="projects-section">
  <div class="container">
    <div class="row">
      <div class="col-sm-12">
      <h2>PROJECTS</h2>
      <hr class="content">
      <p>These are projects I have done as part of freeCodeCamp.
      </div>
    </div> 
  
    <div class="row">
      <div class="col-xs-6 col-sm-4 col-md-3">
          <a class="thumbnail" href="https://codepen.io/wightCoder/full/bBVgYd/" target='_blank'>
           <img class="img-responsive"  src="https://res.cloudinary.com/deyh3ywme/image/upload/c_scale,w_300/v1479812558/Tribute_ipad_nyorab.png" alt="ipad">
          <div class="caption">
          <p>Tribute page</p>
          </div>
        </a>
      </div>
      
      <div class="col-xs-6 col-sm-4 col-md-3">     
          <a class="thumbnail" href="https://codepen.io/the-oc/full/PbVVpY/" target='_blank'>
           <img class="img-responsive"  src="https://res.cloudinary.com/deyh3ywme/image/upload/c_scale,w_300/v1483778168/Quote_gsztxc.png" alt="ipad" >
          <div class="caption">
          <p>Random quote generator</p>
          </div>          
        </a>
      </div> 
      
      <div class="col-xs-6 col-sm-4 col-md-3">
          <a class="thumbnail" href="https://codepen.io/the-oc/full/BQgdQp/" target='_blank'>
           <img class="img-responsive"  src="https://res.cloudinary.com/deyh3ywme/image/upload/c_scale,w_300/v1483778161/Weather_rp77dj.png" alt="ipad">
          <div class="caption">
          <p>Local weather app</p>
          </div>
        </a>
      </div>
      
      <div class="col-xs-6 col-sm-4 col-md-3">     
          <a class="thumbnail" href="https://codepen.io/the-oc/full/GWLgeE/" target='_blank'>
           <img class="img-responsive"  src="https://res.cloudinary.com/deyh3ywme/image/upload/c_scale,w_300/v1491402439/JS_calculator/FCC_Calc.png" alt="ipad" >
          <div class="caption">
          <p>JS Calculator</p>
          </div>          
        </a>
      </div> 
   
      <div class="col-xs-6 col-sm-4 col-md-3">
          <a class="thumbnail" href="#" target='_blank'>
           <img class="img-responsive"  src="https://res.cloudinary.com/deyh3ywme/image/upload/c_scale,w_300/v1479764410/ipad_lelaok.png" alt="ipad">
          <div class="caption">
          <p>Awaiting project...</p>
          </div>
        </a>
      </div>
      
      <div class="col-xs-6 col-sm-4 col-md-3">     
          <a class="thumbnail" href="#" target='_blank'>
           <img class="img-responsive"  src="https://res.cloudinary.com/deyh3ywme/image/upload/c_scale,w_300/v1479764410/ipad_lelaok.png" alt="ipad" >
          <div class="caption">
          <p>Awaiting project...</p>
          </div>          
        </a>
      </div>       
   </div>
 </div>
</section><!---end of projects--->
<div class="container-fluid">
    <div><hr class="separator">       </div>
  </div>  
<!--start of contacts-->
<article id="contact-section">
 <div class="transparency-box">
  <div class="container">
   <div class="row contact">
    <div class="col-sm-6">
      <h2>CONTACT</h2>
      <hr class="contact-small">
      <p> This is where you can find me on the web.</p>
    </div>    
    <div class="col-sm-6">
      <div class="row social">
        <div class="col-sm-6">
      <a href="https://www.freecodecamp.com/ogcule" target='_blank'><button type="button" class="btn btn-default btn-block"><i class="fa fa-free-code-camp" aria-hidden="true"></i></i>  freeCodeCamp</button>
   </a>
      </div>
     </div>
     <div class="row social">
      <div class="col-sm-6">
      <a href="https://github.com/ogcule" target='_blank'><button type="button" class="btn btn-default btn-block"><i class="fa fa-github fa-lg" aria-hidden="true"></i> Github</button>
   </a>
     </div>
    </div> 
  <div class="row social">
    <div class="col-sm-6">
      <a href="https://codepen.io/the-oc/" target='_blank'><button type="button" class="btn btn-default btn-block"><i class="fa fa-codepen fa-lg" aria-hidden="true"></i></i>  Codepen</button>
   </a>
    </div>
   </div>
    </div>
    </div>
   </div> 
  </div>   
 </div>
</article><!--end of contacts-->

<footer class="container-fluid">
  <div class="row icons">
    <div class="col-sm-12">
<a href="https://www.facebook.com/oliver.cule" target='_blank'><i class="fa fa-facebook-square fa-lg" aria-hidden="true"></i></a>

<a href="https://twitter.com/olliecule" target='_blank'><i class="fa fa-twitter-square fa-lg" aria-hidden="true"></i></a>
<a href="https://uk.linkedin.com/in/oliver-cule-36019295" target='_blank'><i class="fa fa-linkedin-square fa-lg" aria-hidden="true"></i></a>
<a href="https://plus.google.com/100930182312538621458" target='_blank'><i class="fa fa-google-plus-square fa-lg" aria-hidden="true"></i></a>
      <p> Designed and written by <a href="https://www.freecodecamp.com/ogcule" target="_blank">Oliver Cule</a>.</p>
    </div>
  </div>
</footer>
</body>
  

              
            
!

CSS

              
                /*general CSS*/
html {
  height:100%;}
body { 
  padding-top:50px;
}
section {
  padding-top:70px;
  padding-bottom:40px;
}
h2{
 font-family: 'Merriweather', serif; 
}
p{
 font-family: 'Open Sans', sans-serif;
 font-size:16px;
}
.transparency-box { 
  background-color: rgba(128, 128, 128, 0.4);
  height:100%;
    width:100%;
}
/*Nav bar*/
.navbar-brand {
  font-family: 'Orbitron', sans-serif;  
}
.navbar a:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    
}
/*Intro section*/
#intro {
   background: url(https://res.cloudinary.com/deyh3ywme/image/upload/v1479831575/Bay_nnoksz.jpg) center center no-repeat;
     background-size: cover;
  height:100%;
  width:100%;
}
.heading { 
  padding:115px 0px 60px 0px;
 }
.heading h1 { 
 font-family: 'Merriweather', serif;
  text-align: center; 
  color:#ffffff;}
.heading h2,h3 {
  font-family: 'Open Sans', sans-serif;
  text-align: center;color:#ffffff;}
.name {
  font-family: 'Kaushan Script', cursive;
  text-align: center;color:#ffffff;
}
hr.head  {
width: 50%;
margin-left: auto;
margin-right: auto;
border:0px;
height:2px;
background-color:#ffffff;
color:#ffffff;
}

.down-arrow{
  Padding:0px 0px 260px 0px;
  text-align: center;
  font-size:28px;
  color:#ffffff;
}
/*about me section*/
#about-section {
  background-color:#505644;
  color:#ffffff;
}

hr.content  {
width: 50px;
margin-left:0px;
margin-right:auto;
height: 2px;
border:0px;
background-color:#ffffff;
color:#ffffff;
}

hr.separator {
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));}

/*Projects section*/
#projects-section {
  background-color:#6488b2;
  color:#ffffff;
}
.thumbnail{
  background-color:#F8F8F8;
  border-color:black;
  color:black;
}
#projects-section a:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    text-align: center;
  text-decoration:none;
}
/*contact section*/
#contact-section{
    background: url(https://res.cloudinary.com/deyh3ywme/image/upload/v1479830394/lifeboat_gnhgzf.jpg) center center no-repeat;
  background-size: cover; 
  height:100%;
  width:100%;
}
hr.contact-small {
width: 50px;
margin-left:0px;
margin-right:auto;
height: 2px;
border:0px;
background-color:#ffffff;
color:#ffffff;
}
.contact { 
  padding:70px 0px 440px 0px;
 }
.contact h2, .contact p {
  color:white;
}
.contact p {
  font-size:20px;
}
.social {
  font-family: 'Open Sans', sans-serif;
}
.social a:hover, a:link{
  text-decoration:none;
}
.btn {
  margin-bottom:10px;
}
  /*footer*/
footer{
  background-color:#F8F8F8;
  height:50px;
  }
.icons { text-align:center;
  padding-top:15px;  
}
.icons p{
  font-size:12px;
}

/*responsive design*/

@media only screen and (max-width: 768px) {
 .contact { 
  padding:70px 0px 200px 0px;
 } 
 #contact-section{
    background: url(https://res.cloudinary.com/deyh3ywme/image/upload/v1479842338/lifeboatsmall_m3qsyc.jpg) center center no-repeat scroll;
  background-size: cover; 
  height:100%;
  width:100%;
} 
#intro {
   background: url(https://res.cloudinary.com/deyh3ywme/image/upload/v1479845903/baysmall_am7fad.jpg) center center no-repeat scroll;
     background-size: cover;
  height:100%;
  width:100%;
}
}

              
            
!

JS

              
                
              
            
!
999px

Console