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

              
                <head>
  <meta name="viewport" content="width=device-width; initial-scale=1; maximum-scale=1">
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.9/css/all.css" integrity="sha384-5SOiIsAziJl6AWe0HWRKTXlfcSHKmYV4RBF18PPJ173Kzn7jzMyFuTtk8JA7QQG1" crossorigin="anonymous">
  <link href="https://fonts.googleapis.com/css?family=Playfair+Display" rel="stylesheet">
</head>
<body>
  <header>
  <div class="topnav" id="myTopnav">
  <nav>
    <div class="brand">
      <h2>EA</h2>
    </div>
    <a href="https://s17.postimg.org/x7duehopr/menu-icon.png" id="menu-icon"></a>
    <ul>
      <li class="active"><a href="#home">Home</a><li>
      <li><a href="#about">About</a></li>
      <li><a href="#portfolio">Portfolio</a></li>
      <li><a href="#contact">Contact</a></li>
    </ul>
  </nav>
  </div>
  </header>
  <section id="home">
  <section class="sec1">
    <div class="hero-text">
    <h1>Elizabeth Alford</h1>
      <div>
    </div>
  </section>
    
     <!-- About Section --> 
<section class="sec2"> 
  <section id="about">
  <div id="about" style="padding-top:80px" class="row">
    <div class="col-md-2" style="padding-top: 50px">
    <img src="https://s17.postimg.org/enzk0os7j/fullsizeoutput_84d.jpg" alt="E. Alford" class="round">
    </div>
  <div class="col-md-10">
  <h2 style="padding-bottom: 20px">About</h2>
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut hendrerit arcu quis lectus auctor, nec laoreet augue ornare. Proin vehicula id purus ac accumsan. Aliquam eu rutrum orci. Aliquam rhoncus ipsum sed nisi porta mattis. Cras euismod sed justo a vehicula. Maecenas nibh magna, auctor nec erat in, hendrerit blandit turpis. Curabitur laoreet viverra mi at consequat. Donec mollis tortor sem, vel pharetra magna mattis quis. Praesent erat dolor, lacinia at euismod quis, sodales eu orci. Fusce ut nibh dolor. Suspendisse potenti. Proin fermentum eros condimentum hendrerit mattis. Morbi libero nibh, tempus aliquam leo sed, elementum rutrum turpis. Pellentesque et pharetra sapien. Nulla sed quam vel ex dictum egestas in tempus risus. Donec lacus magna, feugiat sed lobortis finibus, bibendum vel magna.</p>
      </div
  </div>
    </section>
    
    <!-- Portfolio Section -->
   <section id="portfolio">
<div id="portfolio" style="padding-top: 80px">
  <h2 style="padding-bottom: 20px">Portfolio</h2>
  <div class="row col-center">
    <div class="col">
      <p data-height="265" data-theme-id="dark" data-slug-hash="YaOEBE" data-default-tab="html,result" data-user="ealford24" data-embed-version="2" data-pen-title="Jean Sibelius Tribute Page" data-preview="true" class="codepen">See the Pen <a href="https://codepen.io/ealford24/pen/YaOEBE/">Jean Sibelius Tribute Page</a> by Elizabeth Alford (<a href="https://codepen.io/ealford24">@ealford24</a>) on <a href="https://codepen.io">CodePen</a>.</p>
<script async src="https://static.codepen.io/assets/embed/ei.js"></script>
    </div>
    <div class="col">
  <p data-height="265" data-theme-id="dark" data-slug-hash="EEeBZY" data-default-tab="html,result" data-user="ealford24" data-embed-version="2" data-pen-title="Portfolio" data-preview="true" class="codepen">See the Pen <a href="https://codepen.io/ealford24/pen/EEeBZY/">Portfolio</a> by Elizabeth Alford (<a href="https://codepen.io/ealford24">@ealford24</a>) on <a href="https://codepen.io">CodePen</a>.</p>
<script async src="https://static.codepen.io/assets/embed/ei.js"></script>
    </div>
    </div>
    </div> 
     </section>
    
    <section id="contact">
    <div id="contact" style="padding-top: 80px">
  <div class="container">
  <div style="text-align:center">
    <h2 style="padding-bottom: 20px">Contact</h2>
  </div>
      <form action="/action_page.php">
        <label for="fname">First Name</label>
        <input type="text" id="fname" name="firstname" placeholder="Your name..">
        <label for="lname">Last Name</label>
        <input type="text" id="lname" name="lastname" placeholder="Your last name..">
        
        </select>
        <label for="subject">Subject</label>
        <textarea id="subject" name="subject" placeholder="Write something.." style="height:100px"></textarea>
        <input type="submit" value="Submit">
      </form>
      </div>
    </div>
    </section>
  </section>
 
 <div class="footer">
   <a href="https://www.linkedin.com/in/elizabeth-alford-53637267"><i class="fab fa-linkedin fa-2x"></i></a>
   <a href="https://www.instagram.com/elizabethealford/"><i class="fab fa-instagram fa-2x"></i></a>
   <a href="https://codepen.io/ealford24/"><i class="fab fa-codepen fa-2x"></i></a>
   <div class="footer-tag">
   <p> Web page created by Elizabeth Alford.</p>
   </div>
    </div>
 
</body>

              
            
!

CSS

              
                body {
  margin: 0;
  padding:0;
  font-family: 'Playfair Display', serif;
}
.topnav
{
  overflow: hidden;
}
.topnav .icon {
    display: none;
}
section.sec1 {
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
  background: url(https://s17.postimg.org/g2wjc0jfz/adventure-alpine-background-355770.jpg);
  background-size: cover;
}
section.sec2 
{
  padding: 100px;
}
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(0,0,0,0.6);
  padding: 0 100px;
  box-sizing: border-box;
  z-index: 1;
}
nav .brand {
  float: left;
  height: 100%;
  line-height: 70px;
}
nav .brand h2 {
  margin: 0;
  padding: 0;
  padding-top: 10px;
  color: #fff
}
nav ul {
  float: right;
  display: flex;
  margin:0;
  padding:0;
}
nav ul li {
  list-style: none;
}
nav ul li a 
{
  position: relative;
  display: block;
  height: 70px;
  line-height: 70px;
  padding: 0 20px;
  box-sizing: border-box;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  transition: .5s;
}
nav ul li a:hover 
{
  color: #262626;
}
nav ul li a:before
{
  content:'';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transform-origin: right;
  z-index: -1;
  transform: scaleX(0);
  transition: transform .5s;
}
nav ul li a:hover:before 
{
  transform-origin: left;
  transform: scaleX(1);
}


.hero-text h1 {
  text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #4d4d4d;
  font-size: 60px;
  white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
 
}
.round
{
  border-radius: 50%;
}

/*Footer*/

.footer 
{
  position: bottom;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: .75rem;
  background-color: gray;
  
}
.footer-tag
{
  color: white;
  text-align: left;
  padding: 15px;
}
.fab
{
  float: right;
  padding: 10px;
  color: white;
}
.fab:hover {
	color: #4d4d4d;
}

/*Contact Section*/

* {
    box-sizing: border-box;
}

/* Style inputs */
input[type=text], select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
}

input[type=submit] 
{
    background-color: gray;
    color: white;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: #4d4d4d;
}

/* Style the container/contact section */
.container 
{
    border-radius: 5px;
    background-color: #f2f2f2;
    padding: 10px;
    width: 750px;
}

/*MEDIA QUERY*/
@media only screen and (max-width : 700px) {

	header 
  {
		position: absolute;
	}

	nav ul, nav:active ul 
  { 
		display: none;
		position: absolute;
		padding: 20px;
		background: black;
		border: 5px solid #444;
		right: 20px;
		top: 60px;
		width: 50%;
		border-radius: 4px 0 4px 4px;

	}

	nav li {

		text-align: center;
		width: 100%;
		padding: 10px 0;
		margin: 0;
    color: black;

	}

	nav:hover ul {
    color: white;
		display: block;
	}

  #menu-icon 
  {
  display:inline-block;
  float: right;
  margin-top: 10px;
	display: hidden;
	width: 40px;
	height: 40px;
	background:  url(https://s17.postimg.org/x7duehopr/menu-icon.png) right;
}

              
            
!

JS

              
                
              
            
!
999px

Console