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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <header>
  <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">

  <!-- Add icon library -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">

</header>

<div class="container-fluid">

  <!-- nav bar -->
  <ul class="container nav-bar">

    <li class="nav-effect"><a href="#about" class="">About</a></li>
    <li class="nav-effect"><a href="#latest-works">LatestWorks</a></li>
    <li class="nav-effect"><a href="#contact">Contact</a></li>

  </ul>

  <!-- about  -->
  <div>
    <h1 class="header" id="about">Hello, I'm Adam - a product focused designer who <br> makes complex tasks simple and obvious.</h1>
  </div>

  <!-- latest works -->

  <!-- Flex Box -->
  <div class="row">
    <h2 class="text text-center" id="latest-works"> Latest Works </h2>
    <div class="column">
      <img src="https://image.freepik.com/free-vector/white-room-with-light-and-coming-soon-text_1017-5070.jpg">
      <img src="https://image.freepik.com/free-vector/white-room-with-light-and-coming-soon-text_1017-5070.jpg">
      <img src="https://image.freepik.com/free-vector/white-room-with-light-and-coming-soon-text_1017-5070.jpg">
    </div>
    <div class="column">
      <img src="https://image.freepik.com/free-vector/white-room-with-light-and-coming-soon-text_1017-5070.jpg">
      <img src="https://image.freepik.com/free-vector/white-room-with-light-and-coming-soon-text_1017-5070.jpg">
      <img src="https://image.freepik.com/free-vector/white-room-with-light-and-coming-soon-text_1017-5070.jpg">
    </div>
  </div>

  <!-- Contact Me -->
  <div class="contact" id="contact">
    <p class="text text-center">
      Contact Me</p>
  </div>

  <!-- Social Media buttons -->
  <div class="social">
    <ul class="">
      <li> <a class="fab fa-facebook"></a> </li>
      <li> <a class="fab fa-instagram"></a> </li>
      <li> <a class="fab fa-twitter"></a> </li>
      <li> <a class="fab fa-snapchat-ghost"></a> </li>
      <li> <a class="fab fa-github"></a> </li>
      <li> <a class="fab fa-codepen"></a> </li>
    </ul>
  </div>
  <!-- container div end -->
</div>
              
            
!

CSS

              
                li {
  /* line up nav bar horizontal */
  display: inline-block;
}

li a {
  /* hide black bar under a nav */
  text-decoration: none;
  display: inline-block;
  padding: 8px;
  font-family: "Open Sans";
  color: black;
}

a:hover {
  /* hide black bar under a refs */
  text-decoration: none;
}

.header {
  padding-left: 160px;
  padding-top: 150px;
  font-family: "Open Sans";
  font-size: 30px;
}

.nav-bar {
  padding-top: 100px;
  padding-left: 116px;
}

/* nav hover effect */

.nav-effect:after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: black;
  transition: width 0.3s;
}

.nav-effect:hover::after {
  width: 100%;
  transition: width 0.3s;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 100px;
  padding-left: 6px;
}

/* Create four equal columns that sits next to each other */
.column {
  padding: 4px;
}

.column img {
  border-radius: 9px;
  vertical-align: middle;
  padding: 6px;
  width: 33%;
  height: auto;
    
}

.text {
  font-family: "Open Sans";
  font-size: 30px;
  padding-bottom: 20px;
}

.contact {
  margin-top: 200px;
}

.social {
  padding-left: 430px;
}

/* social media */
.fa {
  padding: 20px;
  font-size: 50px;
  width: 50px;
  text-align: center;
  text-decoration: none;
}

.fa:hover {
  opacity: 0.7;
}

.fa-facebook {
  color: black;
  font-size: 30px;
}

.fa-twitter {
  color: black;
  font-size: 30px;
}

.fa-snapchat-ghost {
  color: black;
  font-size: 30px;
}

.fa-instagram {
  color: black;
  font-size: 30px;
}

.fa-github {
  color: black;
  font-size: 30px;
}

.fa-codepen {
  color: black;
  font-size: 30px;
}

              
            
!

JS

              
                
              
            
!
999px

Console