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

              
                <link href="https://fonts.googleapis.com/css?family=Exo+2" rel="stylesheet">
<header id="header">
  <img src="https://static1.squarespace.com/static/54d3e88ce4b0be204d0da36a/t/566f5b70bfe873371e44c7b0/1525197822184/" alt="logo" id="header-img">
  <nav id="nav-bar">
    <ul> 
      <li><a href="#about-us" class="nav-link">About Us</a></li>
      <li><a href="#videos" class="nav-link">Demo</a></li>
      <li><a href="#photos" class="nav-link">Photo Gallery</a></li>
      <li><a href="#contact-us" class="nav-link">Contact</a></li>
  </nav>
</header>
  
  <main>
      <section id="about-us">
        <h1> One Tae Kwon Do Academy </h1>
        <p> Encourage, Educate, Empower </p>
      </section>
    
   <section id="videos">
    <h1> You Can Learn To Do This!! </h1>
    <div class="video">
    <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/TKEbws4QhEk" frameborder="0" allow="autoplay; encrypted-media" autoplay="1" allowfullscreen></iframe>
  </div>
    </section>
    
    <div id="photos">
      <h1> Photo Gallery </h1>
      <div id="photo-gallery">
        <img src="http://www.mastermoontkd.com/images/Children/Children-taekwondo-image1.jpg">
        <img src="http://tma-academy.net/wp-content/uploads/2015/03/2015-tiger-spring-open-161-400x300.jpg">
        <img src="http://tma-academy.net/wp-content/uploads/2015/02/10455745_829764327064099_1920458374809235330_n-960x570.jpg">
        <img src="http://eagletkdlv.com/files/2015/04/Eagle-Taekwondo-Taekwondo-Sparring-Team.jpg">
        <img src="http://tma-academy.net/wp-content/uploads/2015/02/GirlsNationalTeam-1010x600.jpg">
        <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTpX7TyuWsYOkJFe4yg3BVFu10A_NjfqIh6K9rijaAHLdL9Ub69">   
       </div>
    </div>
    
    
    <div id="contact-us">
      <h1> Contact Us </h1>
      <form id="form" action="https://www.freecodecamp.com/email-submit">
        <input type="email" id="email" name="email" placeholder="enter your email here..." required>
        <input type="submit" id="submit" placeholder="Submit"></input>
      </form>
    </div>
  
  </main>
  
  <footer>
    <ul>
      <li> Contact </li>
      <li> Privacy </li>
      <li> Feedback </li>
    </ul>
  </footer>
              
            
!

CSS

              
                header {
  position: fixed;
  background-color: #cc0000;
  color: white;
  font-family: 'Exo 2', sans-serif;
  padding: 1em;
  width: 100%
}

header::after {
  clear: both;
  content: '';
  display: table;
}

#header-img {
  width: 90px;
  height: 40px;
  float: left;
  padding-top: 1.7em;
}

nav ul{
  float: right;
  margin-right: 2em;
}
nav li{
  display: inline;
  padding: 1em;
  display: inline-block;
}

a {
  text-decoration: none;
  color: inherit;
}

a:visited {
  color: inherit;
}

#about-us {
  background-color: #444;
  color: white;
  Padding: 20em;
  background-image: url(https://images.unsplash.com/photo-1514050566906-8d077bae7046?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=2369b77063d1bf6462de3d6658f18a6a&auto=format&fit=crop&w=1352&q=80);
  background-size: cover;
  background-blend-mode: multiply;
  display: flex;
  flex-direction: column;
  align-items: center;

}

main {
  font-family: 'Exo 2', sans-serif;
}

h1 {
  text-align: center;
}

#videos {
  text-align: center;
  padding: 3.5em;
  }

#video {
  margin: 0 auto;
}

img {
  width: 20em;
  height: 14em;
  margin: 10px;
}
#photos {
   background-color:#f2efea;
   padding: 3em;
}
#photo-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

input{
  height: 2em;
  border: none;
  transition: 0.1s;
}
input:hover {
    border-bottom: 2px solid black;
}
#form {
  text-align: center;
  padding: 2em;
}

#submit {
  border-radius: 5px;
  padding: 0.5em;
  font-family: 'Exo 2', sans-serif;
  background-color: #ffe500;
  border: none;
}

html, body {
  margin: 0;
  font-family: 'Exo 2', sans-serif;
}

footer {
  background-color: #171faa;
  padding: 2em;
  color: white;
}

footer ul {
  list-style: none;
}

footer li {
  display: inline;
  padding: 2em;
}

@media (max-width: 550px ){
  h1 {
    font-size: 1.25em;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console