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

              
                <div id="navigation">
  
<a href="#bio">Bio</a>
<a href="#port">Portfolio</a>
<a href="#con">Contact</a>
</div>

<div id="whitebar">

  <h1 id="heading"><a id="bio">A web developers portfolio....</a></h1>
<div id="about">
<p>Andrew is a front-end web developer<p>

<img id="portrait" src="http://placehold.it/240x250/255/"> <!--place holder for picture of developer-->
  </div>
  <div id="portfolio">
    <p class="example">An example site Andrew made.</p>
<a href="https://codepen.io/WarloirdKnight/pen/Vmxvqv">
<img id=port class="bg" src="https://s28.postimg.org/4q9l6xzf1/Portfoliopicture1.png">
<a>
  <p class="example">This and the photo below are place holders for future sites Andrew will make</p>
<img class="bg" src="http://placehold.it/100x40"> <!--place holder for project-->
<img class="bg" src="http://placehold.it/100x40"> <!--place holder for project-->
  </div>
  <div id="contact">
    <p>To contact Andrew email him at <a id="con">Andrewca712@gmail.com</a></p>
  <p>You can also visit his FreeCodeCamp page by <a href=https://www.freecodecamp.com/warlordknight target="_blank">clicking here</a></p>
  </div>
  </div>


              
            
!

CSS

              
                html {
  background-color: silver
}
#navigation {
  z-index:2;
position: fixed;
margin: 0 auto;
width: 99.4%;
top: 0;
color: #ffffff;
height: 35px;
text-align: center;
padding-top: 18px;
-webkit-box-shadow: 0px 0px 8px 0px #000000;
-moz-box-shadow: 0px 0px 8px 0px #000000;
box-shadow: 0px 0px 8px 0px #000000;
background-color: rgba(1, 1, 1, 0.7);
color: rgba(1, 1, 1, 0.8);

}
#navigation a {
font-size: 1.6em;
padding-left: 15px;
padding-right: 15px;
color: white;
text-decoration: none;
  z-index: 2;
}

#navigation a:hover {
color: grey;}

#whitebar {
  background-color: white;
-webkit-box-shadow: 0px 0px 8px 0px #000000;
-moz-box-shadow: 0px 0px 8px 0px #000000;
box-shadow: 0px 0px 8px 0px #000000;
  margin-left: 10%;
  margin-right:10%;
  padding: 40px;
  padding-bottom: 100px;
}
.example{
  margin-left: 25%;
  margin-right: 50%;
}
.bg
{
  top: 1000px;
  width: 50%;
  height: 100%;
  z-index: 0;
  margin-bottom:1%;
  margin-left: 25%; 
    border-style: solid;
  border-color: grey;
  border-width: 4px;
  border height: 4xp;
}
#portrait {
  border-radius: 50%;
  border-color: gray;
  border-style: solid;
  border-width: 1%;
  border height: 1%;
  z-index: 1;
  width: 100%;
  height: 100%;
  float: right;
}
#heading {
  position: absolute;
  top: 10%;
  left: 43%;
  right: 40%;
}
#about {
  position: absolute;
  right: 15%;
  left: 50%
  margin-top: 3%;
  margin-bottom: 20%;
  font-size: 120%;
  font: sans-serif;
}
#contact {
  position: absolute;
  left: 40%;
  font-size: 120%;
  font: sans-serif;
}
#portfolio {
  margin-top: 25%;
}
              
            
!

JS

              
                
              
            
!
999px

Console