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

              
                <div class="container-fluid">
  <div class="nav">
    <nav>
      <button class="btn about"><a href="#about">About</a></button>
      <button class="btn portfolio"><a href="#portfolio">Portfolio</a></button>
      <button class="btn contact"><a href="#contact">Contact</a></button>
    </nav>
  </div>
  <div id="about" class="row">
    <div class="col-md-8">
      <p>My name is Kevin and I am a fledgling front-end web developer with a history of HTML and CSS. My goal in web development is to show people the massive benefits of having a website, and to do it in a simple and honest manner. Having a web site shouldn't
        be something that people are afraid of, and my aim is to help people understand that.</p>
      <p class="text-center">Here are a few things that I value:</p>
      <ul class="text-center">
        <li>Simplicity</li>
        <li>Honesty</li>
        <li>Transparency</li>
      </ul>
    </div>
    <div class="col-md-4">
      <img class="img-responsive" src="https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcTtsbllrXV5hQN6F6oYRsZop_O6aDJtLnv1MmOfQelUg3Axil21tQ" />
    </div>
  </div>
  <br>
  <hr>
  <div class="container-fluid portfolio">
    <h2 class="text-center">Portfolio</h2>
    <div id="portfolio" class="row">
      <div class="col-md-6">
        <img class="img-responsive center-block" src="https://placehold.it/300.png/09f/fff" />
      </div>
      <div class="col-md-6">
        <img class="img-responsive" src="https://placehold.it/300.png/09f/fff" />
      </div>


      <div class="col-md-6">
        <img class="img-responsive center-block" src="https://placehold.it/300.png/09f/fff" />
      </div>
      <div class="col-md-6">
        <img class="img-responsive" src="https://placehold.it/300.png/09f/fff" />
      </div>
    </div>


  </div>

  <hr>
  <div class="container-fluid contact">
    <h2 class="text-center">Contact</h2>
    <div id="contact"  class="row">
      <div class="col-md-6">
        <form class="form">
          <input type="text" placeholder="name"></input>
          <input type="text" placeholder="email"></input>
          <input type="text" placeholder="phone number"></input>
          <input type="text" placeholder="message"></input>
          <button type="submit" class="btn-primary">Submit</button>
        </form>
      </div>
      <div class="col-md-4">
        <p>Please feel free to get in touch with me, no matter the question. I have experience in building websites for personal use, as well as for businesses, and I will <strong>NOT</strong> charge for a consultation. I want to break down the barriers
          of websites being <em>scary</em> so I will <strong>NEVER</strong> charge to discuss anything. <br><br>I will respond to any questions as soon as I possibly can.</p>
      </div>


    </div>
    <hr>
    <div class="footer">
      <div class="row">
        <div class="col-md-4">
          <p>Please follow me on social media by clicking on the links to the right.</p>
        </div>


        <div class="col-md-1">
          <button class="btn-primary"><i class="fa fa-facebook"><a href="#">Facebook</a></i></button></div>
        <div class="col-md-1">
          <button class="btn-primary"><i class="fa fa-twitter"><a href="#">Twitter</a></i></button></div>
        <div class="col-md-1">
          <button class="btn-primary"><i class="fa fa-linkedin"><a href="#">LinkedIn</a></i></button></div>
        <div class="col-md-1">
          <button class="btn-primary"><i class="fa fa-github"><a href="#">GitHub</a></i></button></div>

      </div>


    </div>
  </div>


</div>
              
            
!

CSS

              
                .nav {
  background-color: yellow;
  position: fixed;
  z-index: 100;
}

.nav a {
  color: black;
  text-decoration: none;
}

.btn {
  border: none;
  background: none;
  color: black;
  text-decoration: none;
  font-weight: bold;
  border-radius: 0;
}

.btn:hover {
  background-color: grey;
}

.container-fluid {
  background-color: grey;
  font-family: Verdana;
  font-weight: bold;
}

p {
  font-size: 20px;
}

.row {
  padding-top: 40px;
}

.text-center {
  font-weight: bold;
  padding-top: 30px;
}

ul {
  font-size: 20px;
  margin-top: -30px;
  color: yellow;
}

.col-md-6 {
  padding: 10px 10px 10px 10px;
}

.form {
  display: block;
}

input {
  padding: 10px 10px 10px 10px;
  margin: 10px 10px 10px 100px;
}

.btn-primary {
  margin-left: 340px;
  margin-top: 10px;
  color: yellow;
}

a {
  text-decoration: none;
  color: yellow;
}

.footer {
  background-color: yellow;
  border-bottom: 1px solid black;
}

.col-md-4 p {
  padding-left: 30px;
  margin-top: -20px;
}
              
            
!

JS

              
                
              
            
!
999px

Console