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

              
                <nav class="navbar navbar-default navbar-fixed-top">
  <div class="container-fluid">
     <div class="navbar-header">
              <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
            </div>
            <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
        <li><a href="#about">About</a></li>
        <li><a href="#portfolio">Portfolio</a></li>
        <li><a href="#contact">Contact</a></li>
      </ul>
    </div>
    </div>
</nav>

<div id="landing">
  <div class="svg-wrapper">
    <a href="#main">
      <svg height="60" width="320">
        <div class="text">Ed Ashford</div>
        <div class="pp"><img src="https://scontent-cdg2-1.xx.fbcdn.net/v/t1.0-9/13669243_10153837029371985_654374283116625743_n.jpg?oh=278a943c3e41cacd99c69be041fc3026&oe=5824FB55"></div>
    </svg></a>
  </div>
</div>

<div id="main" class="container">  
  <div class="jumbotron">
    
    <div id="about">
      <div class="container">
        <div class="text-center">
          <h1>About</h1>
            <p class="col-xs-offset-1 col-xs-10 col-xs-offset-1">As a student, I spent a placement year in the software industry, where I gained valuable expereince in agile methodologies and test automation.</p><p class="col-xs-offset-1 col-xs-10 col-xs-offset-1">Now I've graduated, I'm working towards my Front End Development Certification with <a id="fcc" href="https://www.freecodecamp.com/" target="_blank">freeCodeCamp</a>.</p>
      </div>
      </div>
    </div>
    
    <div id="portfolio">
      <div class="container">
    <h1 class="text-center">Portfolio</h1>
    <section class="gallery">
      <div class="row">
        <div class="col-xs-6 col-md-4">
          <div class="pimage">
            <img style="margin-left:-100px"  src="//c4.staticflickr.com/7/6221/6335576579_4c6860696a_b.jpg" alt="Andy Hull profile.">
            <a target="_blank" href="https://codepen.io/eashford/full/vKWOXm"><p class="pdesc"> Andy Hull Tribute</p></a>
          </div>
        </div>
        <div class="col-xs-6 col-md-4">
          <div class="pimage">
           <img src="https://placehold.it/200x200" alt="project">
             <a href="#" target="_blank"><p class="pdesc">Placeholder</p></a>
          </div>
        </div>
        <div class="col-xs-6 col-md-4">
          <div class="pimage">
            <img src="https://placehold.it/200x200" alt="project">
            <a href="#" target="_blank"><p class="pdesc">Placeholder</p></a>
          </div>
        </div>
        <div class="col-xs-6 col-md-4">
          <div class="pimage">
            <img src="https://placehold.it/200x200" alt="project">
            <a href="#" target="_blank"><p class="pdesc">Placeholder</p></a>
          </div>
        </div>
        <div class="col-xs-6 col-md-4">
          <div class="pimage">
            <img src="https://placehold.it/200x200" alt="project">
           <a href="#" target="_blank"><p class="pdesc">Placeholder</p></a>
          </div>
        </div>
        <div class="col-xs-6 col-md-4">
          <div class="pimage">
            <img src="https://placehold.it/200x200" alt="project">
            <a href="#" target="_blank"><p class="pdesc">Placeholder</p></a>
          </div>
        </div>
      </div>
        </section>
  </div>
</div>
    
    <div id="contact">
  <div class="container">
    <div class="text-center">
      <h1>Contact</h1>
      <form method="post" action="#">
        <div class="row">
          <div class="col-md-12">
            <input type="text" id="name" name="name" required="required" placeholder="Name" />
          </div>
        </div>
        <div class="row">
          <div class="col-md-12">
            <input type="email" id="email" name="email" placeholder="E-mail" required="required"/>
          </div>
        </div>
        <div class="row">
          <div class="col-md-12">
            <textarea id="message" name="message" placeholder="Message" required="required" maxlength="1000"></textarea>
          </div>
        </div>
        <div class="row">
          <div class="col-md-12">
            <input type="submit" value="Submit" class="btn btn-default" id="submit-button" />
          </div>
        </div>
      </form>
      <div class="social">
            <a href="https://uk.linkedin.com/in/ed-ashford-a5bb6a100" target="_blank"><i class="fa fa-linkedin fa-2x" aria-hidden="true"></i></a>
            <a href="https://github.com/eashford" target="_blank"><i class="fa fa-github fa-2x" aria-hidden="true"></i></a>
            <a href="https://codepen.io/eashford/" target="_blank"><i class="fa fa-codepen fa-2x" aria-hidden="true"></i></a>
          </div>
    </div>
  </div>
</div>
    
  </div>
</div>
              
            
!

CSS

              
                body{
  font-family: "Podkova";
  font-size: 20px; 
 background:url("https://c1.staticflickr.com/9/8772/17275013012_7e23c80fe8_b.jpg") no-repeat center fixed;
  background-size:cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
}

.navbar{
  background-color: rgba(0,0,0,0);
  border-color: rgba(0,0,0,0);
}

.nav li{
  background-color: rgba(203,213,223,0.5);
}

.nav li a{
  color: rgb(256,250,240) !important; 
}

.nav li:hover{
  background-color: rgba(203,213,223,0.75);
}

.nav li a:hover{
  color: #383840 !important;
}

a:hover,a:focus{text-decoration:none;}

#landing{
  height:100vh;
  min-height: 500px;
}

.svg-wrapper {
  position: relative;
  top: 35%;
  transform: translateY(-50%);
	margin: 0 auto;
  width: 320px;
  max-height:60px;
}

.text {
  font-size: 32px;
  line-height: 32px;
  letter-spacing: 8px;
  color: #fff;
  top: -60px;
  position: relative;
  text-align: center;
}

.pp {
  line-height: 32px;
  top: -48px;
  margin-left: auto;
  margin-right: auto;
}

.pp, .pimage{
    width: 200px;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    margin-top: 25px;
    margin-bottom: 25px;    
}

img{
  margin: 0 auto;
  height: 100%;
  width: auto;
}

.jumbotron{
  background-color: rgba(256,250,240,0.85);
  margin-bottom: 40px;
}

#about, #portfolio{
  margin-bottom: 40px;
}

#atext{
  margin-left: 100px;
  margin-right: 100px;
}

#fcc{
  color: rgb(0,100,0);
}

#fcc:hover{
  text-decoration: underline;
}

.gallery{ 
  width: 700px; 
  margin: 0 auto;
}

.pdesc {
  position: absolute;
  top: 0;
  bottom: -15px;
  left: 0;
  right: 0;
  background: rgba(154, 154, 154, 0.7);
  color: #fff;
  visibility: hidden;
  opacity: 0;
  display: flex;
  justify-content: center; 
  align-items: center;  
}

.pimage:hover .pdesc {
  visibility: visible;
  opacity: 1;
}

#contact{
  margin-bottom: 10px;
}

input, textarea{
  background-color: rgba(0,0,0,0);
  border: solid 2px #CCC;
  border-radius: 2px;
  resize: none;
  margin-top: 7px;
  box-sizing: border-box;
  outline: none;
  padding-left: 2px;
  padding-right: 2px;
  width: 280px;
}

input:focus, textarea:focus{
  border: solid 2px #383840;
  border-radius: 2px;
  resize: none;
  margin-top: 7px;
  box-sizing: border-box;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px rgb(256,250,240) inset;
}

textarea{
  height: 120px;
}

#submit-button{
  height: 30px;
  margin-top: 0;
  outline: none;
  width: auto;
  background-color: rgba(0,0,0,0);
}

#submit-button:focus{
  border-color: #383840;
}

.social{
  margin-top: 30px;
}

.fa{
  color: #383840;
}

i{
  margin-right: 5px;
  margin-left: 5px;
}
              
            
!

JS

              
                
              
            
!
999px

Console