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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<html>
<header id="header">
  <img id="header-img" src="https://i.pinimg.com/280x280_RS/db/ec/11/dbec1179caaaf38f447c6495b1a12c23.jpg" alt="Care Foundation">

  <nav id="nav-bar">
    <ul>
      <li> <a class="nav-link" href="#our-mission">Our Mission</a></li>
      <li> <a class="nav-link" href="#documentry">Our Documentry</a></li>
      <li> <a class="nav-link" href="#contact-us">Contact Us</a></li>
    </ul>
  </nav>
</header>
  
<div id="sections">
  
  <section id="our-mission">
    <h2 id="mission-head">Our Mission</h2>
    <p id="mission-desc">Since 1988, CARE Foundation, Pakistan’s largest non-profit for education, has been on a mission to provide a quality and marketable education to all. We view our work as nation-building. By empowering our children with a good education, we aim to
      make them productive members of society. We believe that one day; these children will help build a happier and more prosperous nation.</p>
  </section>

      <section id="documentry">
        <h2 id="documentry-desc">Watch Our Documentry Below</h2>
        <iframe id="video" src="https://www.youtube.com/watch?v=fGVpcb0WXsQ" allowfullscreen></iframe>
</section>

      <section id="contact-us">
        <h2 id="contact">Contact Us</h2>
        <p id="mobile">By Mobile#: 0343-4363672, By Email: afzaalcr@gmail.com</p>
      </section
        
    </div>
    <div id="emailform">
      <form id="form" action="https://www.freecodecamp.com/email-submit">
        <input type="email" id="email" name="email" placeholder="subscribe for news-letter" required/>
        
        <input type="submit" id="submit" value="Submit"/>
      </form>

</html>
              
            
!

CSS

              
                * {
  padding: 0;
  margin: 0;
  background-color: lightgrey;
}

header
{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  position: fixed;
  width: 100%;
}

#header-img{
  width: 80px;
  height: 80px;
}

ul{
  list-style: none;
  display: flex;
  position: left;
}

.nav-link{
  text-decoration: none;
  display: block;
  padding: 10px;
  margin-right: 20px;
  color: black;
  border: 1px solid transparent;
  border-radius: 5px;
  transition: 0.5s ease;
}

.nav-link:hover{
  background-color: lightgreen;
}

#sections{
  text-align: center;
  padding: 100px;
}

h2{
 margin: 30px 0 20px 0;
}

p{
  text-align: center;
  width: 50%;
  margin: auto;
  line-height: 1.5;
}
iframe{
  margin: auto;
  width: 500px;
  height: 500px;
  display: flex;
  text-align: center;
}
@media (max-width: 350px) {
  #video{
    width: 250px;
    height: 250px;
  }
}

#email{
  width: 50%;
  height: 20px;
  margin: 10px 0 20px 0;
}

input[type="submit"]
{
	position: relative;
	display: block;
	padding: 19px 39px 18px 39px;
	color: #FFF;
	margin: 0 auto;
	background: #1abc9c;
	font-size: 18px;
	text-align: center;
	font-style: normal;
	width: 50%;
	border: 1px solid #16a085;
	border-width: 1px 1px 3px;
	margin-bottom: 10px;
}
input[type="submit"]:hover
{
	background: #109177;
}

              
            
!

JS

              
                
              
            
!
999px

Console