css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!-- Navigation links -->
<nav>
<p>AN</p>
<ul id = "topnav">

<li id = "icon">
  <a id = "icon-image" href = "#">&#9776;</a>
  
  <div id = "dropdown-content">
    <a href = "#about">About</a>
    <a href = "#portfolio">Portfolio</a>
    <!-- <li>Blog</li> -->
    <a href = "#contact">Contact</a>
  </div>
</li>

<li><a href = "#contact">Contact</a></li>
<li><a href = "#portfolio">Portfolio</a></li>
<!-- <li>Blog</li> -->
<li><a href = "#about">About</a></li>

</ul>
</nav>

<section id = "about">
<div class = "col-10">
<div class = "col-5"><img src = "https://image.ibb.co/mzOSBR/13178874_838119836331901_6131471273294749035_n.jpg" alt = "Ashley Niemerg" id = "circle-image"></div>

<div class = "col-5">
<h1>About</h1>
<hr>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
</div>
</section>

<section id = "portfolio">
<div class = "col-10">
<h1>Portfolio</h1>
<hr class = "col-9" id = "portfoliohr">
<!-- placeholder images for portfolio projects -->
<a href = "pics.html"><img src = "https://image.ibb.co/kXTikm/mich_elizalde_3426.jpg" alt = "Photo by MICH ELIZALDE on Unsplash" class = "col-3" id = "img1"></a>
<a href = "pics.html"><img src = "https://image.ibb.co/mT13km/vladimir_malyutin_94700.jpg" alt = "Photo by Vladimir Malyutin on Unsplash" class = "col-3"></a>
<a href = "pics.html"><img src = "https://image.ibb.co/mYepQm/guang_yang_206939.jpg" alt = "Photo by Guang Yang on Unsplash" class = "col-3"></a>
</div>
<div class = "col-10">
<!-- placeholder images for portfolio projects -->
<a href = "pics.html"><img src = "https://image.ibb.co/m2YG5m/markus_spiske_357131.jpg" alt = "Photo by Markus Spiske on Unsplash" class = "col-3" id = "img4"></a>
<a href = "pics.html"><img src = "https://image.ibb.co/g3AJJ6/utah_jack_336468.jpg" alt = "Photo by Utah Jack on Unsplash" class = "col-3"></a>
<a href = "pics.html"><img src = "https://image.ibb.co/h9gsd6/daria_nepriakhina_194418.jpg" alt = "Photo by Daria Nepriakhina on Unsplash" class = "col-3"></a>
</div>
</section>

<section id = "contact">
<div class = "col-10">
<h1>Contact</h1>
<hr class = "col-9">


<div class = "col-8" id = "aboutform">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam...
</p>
</div>

<div class = "col-8" id = "formcontainer">
<!-- the contact form: fields for name, email, phone, message -->
<form>
<span>Name</span> <br/><input type = "text" name = "name"><br>
<span>Email</span> <br/><input type = "email" name = "email" required><br>
<span>Phone</span> <br/><input type = "tel" name = "phone"><br><br>
<span>Message</span> <br/><textarea required></textarea><br><br>
<input type = "submit" value = "Send">
</form>
</div>

</div>
</section>

<!-- Bottom bar with social media links -->
<footer>
<ul>
<li><a href = "https://github.com/ashleyniemerg" class = "fa fa-github"></a></li>
<li><a href = "https://twitter.com/ashleyniemerg" class = "fa fa-twitter"></a></li>
<li><a href = "https://www.linkedin.com/in/ashley-niemerg-721b0b113/" class = "fa fa-linkedin"></a></li>
<li><a href = "http://facebook.com/ashley.toth.188" class = "fa fa-facebook"></a></li>
</ul>
</footer>

<p id = "createdby">Created for a <a href = "https://www.freecodecamp.org">freeCodeCamp <i class="fa fa-free-code-camp" aria-hidden="true"></a></i> challenge by Ashley Niemerg</p>
            
          
!
            
              * {
  box-sizing: border-box;
}

hr {
   border: 0;
   border-top: 2px solid black;
   text-align: center;
}

hr:after {
   content: '< / >';
   display: inline-block;
   position: relative;
   top: -14px;
   padding: 0 10px;
   background: #DDD;
   color: black;
   font-size: 18px;
   font-weight: bold;
}

#portfoliohr:after {
   background: #FFF;
}

.col-10 {
    margin: auto;
    padding: 1%;
    overflow: auto;
}

.col-5 {
      float: left;
}

.col-3 {
       margin: 0 20px 0 0;
       padding: 0;
}

h1 {
   text-align: center;
}

#circle-image {
        display: block;
        border-radius: 50%;
        max-width: 50%;
        max-height: 50%;
        padding: 0;
        margin: auto;
        margin-top: 35px;
}

#about, #contact {
        padding-top: 1%;
        padding-bottom: 5%;
        background-color: #DDD;
}

#portfolio {
        padding: 1% 5% 5% 5%;
}

/* style the form */
#aboutform {
        float: none;
        margin: auto;
}

#formcontainer {
     float: none;
     margin: auto;
}

input {
      width: 50%;
      margin: 1% 0 1% 25%;
      padding: 1%;
      outline: none;
}

input:focus {
         border-width: 2px;
}

textarea {
         width: 50%;
         height: 65px;
         margin: 1% 0 1% 25%;
         padding: 1%;
         outline: none;
         border-width: 1px;
}

input[type = submit] {
      width: 25%;
      margin: 1% 0 1% 37.5%;
      cursor: pointer;
}

span {
     margin: 25%;
     font-weight: bold;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  height: 40px;
  color: white;
  background-color: black;
}

ul li {
   display: inline-block;
   padding: 0;
   float: right;
}

#topnav li:hover {
   background-color: #7f5957;
   text-decoration: none;
}

#topnav li a:hover {
   text-decoration: none;
   color: white;
}

nav p {
  float: left;
  margin: 10px 0 10px 25px;
  color: white;
}

ul li a {
  float: right;
  margin: 10px 25px 10px 25px;
  color: white;
  text-decoration: none;
  align = center;
}

#dropdown-content {
        display: none;
}

footer li:hover a {
       color: #7f5957;
}

#createdby {
  padding: 1%;
  background-color: #DDD;
  text-align: center;
}

#createdby a {
  text-decoration: none;
  color: #7f5957;
}


/* For mobile phones: */
[class*="col-"] {
        width: 100%;
}

/* Only the icon will display in top navbar on small screens. */
#topnav li:not(#icon) {
        display: none;
}

/* Drop-down vertical navbar appears if user hovers over icon. */
#icon:hover {
        background-color: black;
        color: white;
        display: block;
        width: 100px;
        margin: 0;
        padding: 0;
        overflow: auto;
}

#icon:hover #icon-image {
        display: none;
}

#icon:hover #dropdown-content {
        display: block;
        margin: 0;
        padding: 0;
}

#icon:hover #dropdown-content a {
    display: block;
    margin: 0;
    padding: 10px 40px 10px 25px;
    float: left;
    text-decoration: none;
}

#dropdown-content a:hover {
     background-color: black;
     color: white;
    
}


@media only screen and (min-width: 600px){
       /* For tablets: */
      .col-3 {
             padding: 10%;
        }
        
        #topnav #icon {
          display: none;
        }

        #topnav li:not(#icon) {
          display: inline-block;
        }
}


@media only screen and (min-width: 768px){
       /* For desktop */
       .col-1 {width: 8.33%;}
       .col-2 {width: 16.66%;}
       .col-3 {width: 25%;}
       .col-4 {width: 33.33%;}
       .col-5 {width: 41.66%;}
       .col-6 {width: 50%;}
       .col-7 {width: 58.33%;}
       .col-8 {width: 66.66%;}
       .col-9 {width: 75%;}
       .col-10 {width: 83.33%;}
       .col-11 {width: 91.66%;}
       .col-12 {width: 100%;}

       .col-3 {
              padding: 0;
        }

      #img1, #img4 {
        margin-left: 10%;
      }
}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console