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

              
                <body id="home">
<header id="header">
 <img id="header-img" class="logo" src="https://trustyourwingman.com/wp-content/uploads/2017/09/winman-transparent-1024x245.png" alt=""></img>
  <input type="checkbox" id="nav-toggle" class="nav-toggle">
<nav id="nav-bar">
  <ul class="nav-bar">
      <li><a href="#home"class="nav-link">Home</a></li>
      <li><a href="#testimonials"class="nav-link">Testimonials</a></li>
      <li><a href="#services"class="nav-link">Services</a></li>
    <li><a href="#contact" class="nav-link"> Contact</a></li>
    </ul>
  </nav>
  <label for="nav-toggle" class="nav-toggle-label">
    <span></span>
</label>
</header>
    <div class="content">
      <img src="https://lh3.googleusercontent.com/yeVSbrhCyWaIlFRKI-P-bqXZnwY0WD4D3YKvaFFJC1x4vthOCtFjnOw-BPmEdbBOS3_1Qex52sTlqPPiZaKyLR1PKkskVPBPzgU06j1Jj69pek4J3gw0itLAIxOns7g-Jo9rhoaboZivWopW53osIh_pTjiX0iOa5sTnhHVudPHwWFgRyQshYGwFtx0qVbdv6R_K1NHSsg9VJZE0Y5Oii94mrNkcMwK3Vpt5GQRX_noHxr0O3GTfE0IV_HPpHnvHp4ObNwr6dMbOkfHzaaECVbnv82fSa7CGr90hER4ygiXvEOW__wGuqzQkVNHGp3Hib7N4OxyiZ4IwBy5xnwjt3lKCLVTP6YSxYB4EptwHrslobN4_basrRXPJKSXYmXlJur_0-bp4AvAdXObZ0FtRVxqbv2eoy1EeNN7xzmi_3bIhbxZSYE6DerGkdnKAMHCxTPOY7f_kywzp16aUwSJDiU3LgTplYxPNlOUeTCMdoSaKaCXQxwyV_CziAYyq0KAxTk_megl0ezFM-4_XMdzCqe05XWbyBYaTJDm0lu4rRv4tJSYEtSmJrbxxBHJjx4XygCdV55ZmtwaWxvEJC9LMhGJ4K0nIduZapm9ZZ-EvIkXdAPXg-Pip0aRhu4vOB8ltOb46Lkz1X11mqzXQZEBtYZWB=w1577-h887-no" alt="">
    </div>
<br><br>
<div class="shit">
   <img src="https://lh3.googleusercontent.com/4SBjTn9NyBle33X6XE5ehLOAnG7hvz3BS51H2qtOav7764OX_82kBVNPTITYChf1WPk94XocNSTm-UpTYBDtPIb5QmQFzkpbf_WYITznIcyrmyAqdi5t2OA6OrmqBn7poFxYy6ekD_mjWp2LLZgPL7jl8Q2gX-fi_U05395OXkraFk2bxcAnCZOhY_gaK5lzzlyqn1e8pj3f8vQVJF5n4oDm6xfSV8gu7u0lkl5bTA9tNIlxjiLtao5ZFcWTcL7FIb11VoPi9lBBC2G8rZ_NwGtLuv7E2_dGenATfv9P4G-VtxL90AveSCJxkFB3kooj5I3nIQ_F76bR1fjapSvTXOzBDgCDHvv8HlbCLrgbm4m2Y5djXuGqQ9fzDurRpJYv9Qb19UwMWAOHnpgzD_YS6UUSIu1VHcwSgpJztkICuN4HXGqT6tSosCHnkDG-ZJ9JDrqT2PalRnOM4qXiPzp6JByRU6JUtGIXlraboaDm4jyhB1qQe77fofFKolza2iOIy-jVJhYnMdLbTgEBZQqVGdc4LmbewCnw9zN6_xziyRvS9G0QV0F3H5zkGmshWcqPsZHl2OUyfgXZDvvmanI2O7YAS7Sr_6_w0hSe3VOa323Mbd5WWh8AhKd_-EBmGAZmXOiNl7a2WjCPZvFBwXsUoHvg=w1920-h340-no" alt="">
  <h1 class="offer">What We Offer</h1>
</div>
<br>
<ul id="services">
  <li class="item item1">
    <a href="#"</a>
<img 
  src="http://source.unsplash.com/B1amIgaNkwA/480x320/">
    <h2>Item 1</h2>  
    <div class="item-text">
        <p>Curabitur blandit tempus porttitor. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Curabitur blandit tempus porttitor. Etiam porta sem malesuada magna mollis euismod. Integer posuere
          erat a ante venenatis dapibus posuere velit aliquet.</p>
      </div>
    </li>
      <li><a href="#">Testimonials</a></li>
      <li class="item item1"><a href="#Services">Services</a></li>
    <li class="item item1"><a href="#">Contact </a></li>
    </ul>
</ul>
<div class="footer">
  <footer>
    <form id="form"></form>
    <div class="view">
      <iframe id="video" width="1193" height="671" src="https://www.youtube.com/embed/tOTyZURq-oM" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
    </div>
  
    <div id="testimonials">
      <h1>Wow</h1>
    </div>
    <br><br>
    <div class="mail">
    <section id=contact>
           <div id="pay-div">
      <form id="form" action="https://www.freecodecamp.com/email-submit">
        <fieldset>
          <legend> Your Address</legend>
          <label for="email"><span class="fa fa-envelope"></span> email</label><input type="email" name="email"placeholder="your email"id="email" required>
          <label for="country"><span class="fa fa-globe"></span> country</label><input type="text" placeholder="your country"id="country" >
          <label for="adress"><span class="fa fa-address-card"></span> Address</label><input type="text" placeholder="your location address"id="adress" >
        </fieldset>
        <fieldset>
          <legend> Your Credit Info</legend>
          <p><span class="fa fa-cc-visa" style="color:navy;"></span><span class="fa fa-cc-discover" style="color:orange;"></span><span class="fa fa-cc-mastercard" style="color:red;"></span></p>
          <label for="card">Credit Card Name</label><input type="text" placeholder="name of card"id="card" >
          <label for="card-num"><span></span> Credit Card Number</label><input type="text" placeholder="111-222-444-555/55"id="card-num" >
        </fieldset>
        <div class="clearfix"></div>
        <input type="submit" value="SUBMIT" id="submit" >
      </form>
      </div>
    </div>
    </body>
   
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Work+Sans:300,600');
@import url('https://fonts.googleapis.com/css?family=Doppio+One');
@import "compass/css3";


:root {
  --background: rgba(0, 214, 170, .85);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  text-align: center;
	margin: 0;
	font-family: 'Work Sans', sans-serif;
	font-weight: 400; }

.content {
  color: #fff;
  height: 100vh;
  place-items: center; }
 
  /* navigation start here */

header {
  background: var(--background);
  text-align: center;
  position: fixed;
  z-index: 999;
  width: 100%; }

.nav-toggle {
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important; }

.nav-toggle:focus ~ .nav-toggle-label {
  outline: 3px solid rgba(lightblue, .75); }

.nav-toggle-label {
  position: absolute;
  top: 0;
  left: 0;
  margin-left: 2em;
  height: 100%;
  display: flex;
  align-items: center; }

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: white;
  height: 2px;
  width: 2em;
  border-radius: 2px;
  position: relative; }

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute; }

.nav-toggle-label span::before {
  bottom: 7px; }

.nav-toggle-label span::after {
  top: 7px; }

nav {
  position: absolute;
  text-align: left;
  top: 100%;
  left: 0;
  background: var(--background);
  width: 100%;
  transform: scale(1, 0);
  transform-origin: top;
  transition: transform 400ms ease-in-out; }

nav ul {
  margin: 0;
  padding: 0;
  list-style: none; }

nav li {
  margin-bottom: 1em;
  margin-left: 1em; }

nav a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 150ms ease-in-out; }

nav a:hover {
  background-color: #000;
}

.nav-toggle:checked ~ nav {
  transform: scale(1,1); }

.nav-toggle:checked ~ nav a {
  opacity: 1;
  transition: opacity 250ms ease-in-out 250ms; }

@media screen and (min-width: 800px) {
  .nav-toggle-label {
    display: none; }

  header {
    display: grid;
    grid-template-columns: 1fr auto minmax(600px, 3fr) 1fr;  }
  
  .logo {
    grid-column: 2 / 3;
    width: 13em  }
  
  nav {
    // all: unset; /* this causes issues with Edge, since it's unsupported */
    
    /*  add Edge support */
    position: relative;
    text-align: left;
    transition: none;
    transform: scale(1,1);
    background: none;
    top: initial;
    left: initial;
    /* end Edge support stuff */
    
    grid-column: 3 / 4;
    display: flex;
    justify-content: flex-end;
    align-items: center; }
  
  nav ul {
    display: flex; }
  
  nav li {
    margin-left: 4em;
    margin-bottom: 0; }
  
  nav a {
    opacity: 1;
    position: relative; }
  
  nav a::before {
    content: '';
    display: block;
    height: 5px;
    background: black;
    position: absolute;
    top: -.75em;
    left: 0;
    right: 0;
    transform: scale(0, 1);
    transition: transform ease-in-out 250ms; }
  
  nav a:hover::before {
    transform: scale(1,1); } }

/* THATS ALOT OF CODE JUST 4 A NAV */

.shit img {
  margin-top: 4em;
width: 55em
}

.offer {
  font-size: 3em;
  text-transform: uppercase;
}

form, input {
  font-size: 1rem;
  display: inline-block;
  padding: 1rem;
}

.offer {
  display: flex;
  justify-content: center
}

.item {
  
}
              
            
!

JS

              
                
              
            
!
999px

Console