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

              
                <body>
<!-- Navigation Bar -->
  <ul class="nav navbar-text navbar"> 
    <li><a href="#about"> About Me</a> </li>
    <li><a href="#portfolio"> Portfolio</a> </li>
    <li><a href="#contact"> Contact</a> </li>
  </ul>
<!-- Intro section -->
  <div class="card-block-top" id="about">
    <h2 class="card-top text-center mx-auto d-block"> Hello, I'm a new student learning web development. Currently I'm practicing HTML5, CSS3, Bootstrap 4, and JS to one day earn a place in the tech-industry. </h2>
    <h2 class="text-center border-bottom"> Future Web Developer</h2>
  </div>
<!-- Portfolio section -->
<div class="card-block-mid">
  <h1 class="grey-text portfolio-text text-center" id="portfolio"> Portfolio </h1>
<!-- PH 1 -->
<div class="row">
  <div class="card-block-ph1">
  <div class="col-md-4">
    <h2 class="card-title grey-text"> Test </h2>
  <img src="https://pixy.org/images/placeholder.png" class="sizing">
  </div>
  </div>
<!-- PH 2 -->
  <div class="card-block-ph2">
    <div class="col-md-4">
      <h2 class="card-title grey-text"> Test2 </h2>
        <img src="https://pixy.org/images/placeholder.png" class="sizing">
    </div>
  </div>
<!-- PH 3 -->  
    <div class="card-block-ph3">
    <div class="col-md-4">
      <h2 class="card-title grey-text"> Test3 </h2>
        <img src="https://pixy.org/images/placeholder.png" class="sizing">
    </div>
  </div>
<!-- PH 4 -->
<div class="row">
  <div class="card-block-ph4">
  <div class="col-md-4">
    <h2 class="card-title grey-text padding-test"> Test4 </h2>
  <img src="https://pixy.org/images/placeholder.png" class="sizing">
  </div>
  </div>
<!-- PH 5 -->
  <div class="card-block-ph5">
    <div class="col-md-4">
      <h2 class="card-title grey-text padding-test"> Test5 </h2>
        <img src="https://pixy.org/images/placeholder.png" class="sizing">
    </div>
  </div>
<!-- PH 6 -->  
    <div class="card-block-ph6">
    <div class="col-md-4">
      <h2 class="card-title grey-text padding-test"> Test6 </h2>
        <img src="https://pixy.org/images/placeholder.png" class="sizing">
    </div>
  </div>
</div>
</div>
</div>
<!-- Contact Section -->
<div class="card-block-bot" id="contact">
  <h2 class="text-center contact-title"> Contact Me </h2>
  <p class="text-center"> Interested in following my work? Check out my github and freecodecamp profiles. </p>
  <a href="https://github.com/amistely" target="_blank"><img class="github" src="https://assets-cdn.github.com/images/modules/logos_page/GitHub-Logo.png" alt="githublogo"></a>
  <a href="https://www.freecodecamp.org/amistely" target="_blank"><img class="freecodecamp" src="https://avatars0.githubusercontent.com/u/9892522?v=4&s=400" alt="freecodecamplogo"></a>
  </div>
  </>
              
            
!

CSS

              
                body {
  background-color: rgba(0,0,0,.2);
}
/* Navigation Bar */
.navbar-text {
  margin: 0;
  padding: 0;
  font-family: Arial;
}
.nav {
  background-color: #595959;
  color: #FFF;
  list-style: none;
  text-align: center;
  padding: 15px 0 20px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
}
.nav > li {
  display: inline-block;
  padding-right: 50px;
}
.nav > li > a {
  text-decoration: none;
  color: #FFF;
}
.nav > li > a:hover {
  color: #C1C1C1;
}
/*Intro CSS*/
h2, h3 {
  font-size: 1.5em;
  color: white;
  font-family: Arial;
}
.card-top {
  width: 50%;
  padding: 1em;
  border-bottom-style: solid;
}
.card-block-top {
  background-color: rgba(0, 0, 0, .1);
  width: 65%;
  margin: 2.5em 0em 0em 20.75em;
  height: 20em;
}
/* Portfolio CSS */
.grey-text {
  color: grey;
}
.portfolio-text {
  text-decoration: underline;
  font-size: 2.2em;
  padding: .5em;
}
img {
  border: solid;
}
.padding-test {
  padding-top: .5em;
}
.sizing {
  max-width: 20em;
}
.card-block-ph1 {
  margin-left: 6.5em;
}
.card-block-ph4 {
  margin-left: 7.5em;
}
.card-block-mid {
  background-color: rgba(255, 255, 255, .4);
  width: 65%;
  margin: 0 auto;
  height: 55em;
}
/* Contact Section */
.contact-title {
  padding: .5em;
  font-size: 2.2em;
  text-decoration: underline;
}
.github {
  max-width: 20em;
  margin-left: 10em;
  margin-top: 2em;
  border: none;
}
.freecodecamp {
  max-width: 10em;
  float: right;
  margin-right: 20em;
  border: none;
}
.card-block-bot {
  background-color: rgba(0, 0, 0, .1);
  width: 65%;
  margin: 0 auto;
  height: 20em;
}
              
            
!

JS

              
                
              
            
!
999px

Console