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.

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

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.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:

Screenshot

Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

              
                <div id="main">

  <div class="banner"></div>

  <ul class="topnav">
    <li><a href="index.html"><i class="fa fa-fw fa-home"></i> Home</a></li>
    <li><a href="Galerij.html"><i class="fa fa-fw fa-image"></i>Galerij</a></li>
    <li><a class="active" href="contact.html"><i class="fa fa-fw fa-envelope"></i> Contact</a></li>
    <li><a href="overMij.html"><i class="fa fa-fw fa-user"></i>Over mij</a></li>
  </ul>

  <div class="container">
    <form action="/action_page.php" class="forumc">

      <label>Naam en Voornaam</label>
      <input type="text" name="naamenvoornaam" placeholder="Type hier je naam en voornaam..." onfocus="this.placeholder = ''" onblur="this.placeholder = 'Type hier je naam en voornaam...'">

      <label>e-mailadres</label>
      <input type="text" name="e-mail" placeholder="Type hier je e-mailadres..." onfocus="this.placeholder = ''" onblur="this.placeholder = 'Type hier je e-mailadres...'">

      <label>Beschrijving</label>
      <textarea class="beschrijvingcontact" name="subject" placeholder="Type hier je bericht..."></textarea>

      <input type="submit" value="verzenden">
    </form>
  </div>

  <div class="push"></div>
</div>

<footer id="footer">
  <p> <strong>KunsTh</strong></p>
  <p><i class="fas fa-user"></i> Kristel Thoonen</p>
  <p><i class="fas fa-phone"></i> 0476/33.12.63</p>
  <p><i class="fas fa-map-marker-alt"></i> Parelsbergstraat 13, 3290 Diest</p>
  <p><a href="mailto:kristelthoonen@hotmail.com"><i class="fas fa-envelope"></i> E-mail</a></p>
  <p><i class="fas fa-copyright"></i> Copyright by: Matthias Veelaert 2018</p>
</footer>
              
            
!

CSS

              
                /*main css*/
html, body {
  background-color: cadetblue;
  margin: 0;
  height: 100%;
}

h1 {
  text-align: center;
  font-size: 40px;
  margin-top: 25px;
}

h2 {
  text-align: center;
  font-size: 30px;
  margin-top: 25px;
}

h3 {
  font-size: 25px;
  margin-top: 25px;
}

#main {
  min-height: 100%;
  margin-bottom: -110px;
  overflow: hidden;
}

/*banner*/

.banner .banner-image {
  width: 100%;
  display: block;
  height: 50%;
  padding: 0 300px 0 300px;
}

/*navigatiebalk*/
.topnav {
  background-color: gray;
  overflow: hidden;
  color: white;
  list-style: none;
  text-align: center;
  padding: 20px 0 20px 0;
  margin-left: 300px;
  margin-right: 300px;
}

.topnav li {
  display: inline-block;
  color: antiquewhite;
  padding: 0 30px 0 30px;
  text-decoration: none;
  font-size: 30px;
}

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

.topnav li a:hover {
  color: #c1c1c1;
}

.topnav li a.active {
  color: darkgrey;
}

/*slideshow*/
* {
  box-sizing: border-box;
}

.slideshow-container {
  max-width: 750px;
  position: relative;
  margin: auto;
  margin-top: 20px;
  margin-bottom: 30px;
}

.Slides {
  display: none;
}

/*buttons sildeshow*/
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/*tekst linksboven in slideshow*/
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/*animatie*/
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/*footer*/

#footer, .push {
  height: 110px;
}

#footer {
  background-color: gray;
  position: relative;
  overflow: hidden;
}

#footer p {
  text-align: center;
  margin-bottom: 2px;
}

/*contact form*/
input[type="text"], select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

input[type="submit"] {
  background-color: #4caf50;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #45a049;
}

.container {
  border-radius: 5px;
  background-color: #f2f2f2;
  text-align: center;
  padding: 20px;
  margin: 75px 325px 0;
}

/*overmij*/
* {
  box-sizing: border-box;
}

.OverMij {
  float: left;
  width: 25%;
  padding: 20px;
  text-align: justify;
  margin-bottom: 25px;
}

.OM:after {
  content: "";
  display: table;
  clear: both;
}

.titelOM {
  text-align: center;
  margin-bottom: 10px;
  font-size: 40px;
}

.naamOM {
  text-align: center;
  font-size: 20px;
  margin-top: 10px;
}

.photoOM {
  margin-top: 40px;
}

/*galerij*/
* {
  box-sizing: border-box;
}

.row {
  margin: 8px -16px;
}

.row, .row > .column {
  padding: 8px;
}

div.content:hover {
  border: 1px solid #777;
}

.column {
  float: left;
  width: 25%;
  display: none;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

.content {
  background-color: white;
  padding: 10px;
}

.show {
  display: block;
}

/*galerij filter buttons*/
.btn {
  border: none;
  outline: none;
  padding: 12px 16px;
  margin-left: 15px;
  background-color: white;
  cursor: pointer;
  margin-top: 25px;
  overflow: hidden;
}

.btn:hover {
  background-color: gray;
  color: white;
}

.btn.active {
  background-color: gray;
  color: white;
}
/*responsive website*/
@media screen and (max-width: 1320px) {
  .topnav {
    margin-left: 0;
    margin-right: 0;
  }
  .container {
    margin-left: 0;
    margin-right: 0;
  }
  .banner .banner-image {
    display: none;
  }
  .OverMij {
    width: 50%;
  }
  .OverMij:first-child {
    display: none;
  }
  .OverMij:last-child {
    display: none;
  }
}

@media screen and (max-width: 900px) {
  .container {
    margin-left: 0;
    margin-right: 0;
  }
  .column {
    width: 49.99%;
    margin: 6px o;
  }
}

@media screen and (max-width: 800px) {
  .topnav li {
    display: block;
    font-size: 30px;
    margin-top: 10px;
  }
  .topnav li:first-child {
    margin-top: 0;
  }
}

@media screen and (max-width: 600px) {
  .topnav li {
    text-align: center;
    float: none;
    display: block;
  }
  .topnav {
    margin-left: 0;
    margin-right: 0;
  }
  .container {
    margin-left: 0;
    margin-right: 0;
  }
  .banner-image {
    padding: 0;
  }
  .OverMij {
    width: 100%;
  }
}

@media screen and (max-width: 500px) {
  .topnav li {
    text-align: center;
    float: none;
    display: block;
  }
  .topnav {
    margin-left: 0;
    margin-right: 0;
  }
  .container {
    margin-left: 0;
    margin-right: 0;
  }
  .banner-image {
    padding: 0;
  }
  .column {
    width: 100%;
  }
}
              
            
!

JS

              
                
              
            
!
999px
If a groundhog inspects their Web Component, do they see their Shadow DOM?

Console