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

              
                <div id="main">
 <header>
  <div class="logo">
    <img src="https://cdn.iconscout.com/public/images/icon/free/png-512/airbnb-logo-social-media-3cf7b6aa5ab8cfd5-512x512.png" id="header-img" alt="airbnb logo">
  </div>
  <nav id="nav-bar">
    <ul>
      <div class="toggle">
        <div class="menu"><i class="fas fa-bars"></i></div>
      </div>
      
      <li class="navList"><a href="#">Home</a></li>
      <li class="navList"><a href="#">Services</a></li>
      <li class="navList"><a href="#">Features</a></li>
      <li class="navList"><a href="#">Pricing</a></li>
      <li class="navList"><a href="#">Team</a></li>
      <li class="navList"><a href="#">contact</a></li>
      <li class="navList" id="viewPlans"><a href="#" id="link"></a>View Plans</li>
    </ul>
  </nav>
 </header>

 <div id="first">
  <div id="descFirst">
    <h1>We help startups launch their websites</h1>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
    <a href="#" id="getStarted">Get Started!</a>
  </div>
  <form id="form" action="https://www.freecodecamp.com/email-submit">
    <p>Try 30 day FREE Trial Now!</p>
    <input type="text" class="input" placeholder="Enter your Name" id="name">
    <input type="email" class="input" placeholder="Enter your Email" id="email">
    <textarea class="input" placeholder="Enter your message here" style="height: 100px; resize: vertical;"></textarea>
    <input type="submit" value="Send Detail" id="submit">
  </form>
 </div>
 <div id="second">
  <h1>Our Services</h1>
  <hr>
  </br>
  <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>
  <div class="container">
    <div class="features">
      <div class="icon">
        <img src="https://png.icons8.com/small/50/000000/source-code.png">
      </div>
      <div class="desc">
        <h3> Coding</h3>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt .
      </div>
    </div>
    <div class="features">
      <div class="icon">
        <img src="https://png.icons8.com/small/50/000000/combo-chart.png">
      </div>
      <div class="desc">
        <h3>Analytics</h3>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt .
      </div>
    </div>
    <div class="features">
      <div class="icon">
        <img src="https://png.icons8.com/small/50/000000/server.png">
      </div>
      <div class="desc">
        <h3>Back-end</h3>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt .
      </div>
    </div>
  </div>
  <div class="container">
    <div class="features">
      <div class="icon">
        <img src="https://png.icons8.com/material-outlined/50/000000/geography.png">
      </div>
      <div class="desc">
        <h3>Websites</h3>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt .
      </div>
    </div>
    <div class="features">
      <div class="icon">
        <img src="https://png.icons8.com/small/50/000000/wordpress.png">
      </div>
      <div class="desc">
        <h3>Wordpress</h3>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt .
      </div>
    </div>
    <div class="features">
      <div class="icon">
        <img src="https://png.icons8.com/small/50/000000/linux-client.png">
      </div>
      <div class="desc">
        <h3>Linux</h3>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt .
      </div>
    </div>
  </div>
 </div>
 <div id="third">
  <div id="content3">
    <div id="thirdHead">Perfect solution for small businesses</div>
    <p id="thirdParagraph">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt .</p>
    <a href="#plan" id="noPlan">View Plan and Pricing</a>
  </div>
 </div>
 <div id="fourth">
  <div id="descFourth">
    <div id="fourthHead">We Are Digital Creative Agency</div>
    <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.</p>
    <br>
    <ul id="fourthList">
      <li style="color: #ff4d4d;"><span>We put a lot of effort on design.</span></li>
      <br>
      <li style="color: #ff4d4d;"><span>The most important ingredient for successful websites.</span></li>
      <br>
      <li style="color: #ff4d4d;"><span>Submit your organization.</span></li>
    </ul>
    <br>
    <a id="learn" href="#">Learn More</a>
  </div>
  <img src="https://image.freepik.com/free-vector/app-development-concept-with-flat-design_23-2147856752.jpg" alt="web developement vector" width="500px">
 </div>
 <div id="fifth">
  <h1>Our Pricing</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.</p>
  <br>
  <div id="pricing">
    <div class="plans" id="Economy">
      <h2>Economy</h2>
      <h1>$9.99</h1>
      <p>Billing per Month</p>
      <hr>
      <ul style="list-style: none;" class="packs">
        <li>Bandwidth: <span class="criteria"> 1GB </span></li>
        <li>Onlinespace:<span class="criteria"> 50MB </span></li>
        <li>Support:<span class="criteria"> No </span></li>
        <li><span class="criteria">1</span> Domain</li>
        <li>No<span class="criteria"> Hidden Fees</span></li>
      </ul>
      <button class="btn">Join Now</button>
    </div>
    <div class="plans" id="Deluxe" style="background-color: white;" />
    <h2>Deluxe</h2>
    <h1>$19.90</h1>
    <p>Billing per Month</p>
    <hr>
    <ul style="list-style: none;" class="packs">
      <li>Bandwidth: <span class="criteria"> 10GB </span></li>
      <li>Onlinespace:<span class="criteria"> 500MB </span></li>
      <li>Support:<span class="criteria"> Yes </span></li>
      <li><span class="criteria">10</span> Domain</li>
      <li>No<span class="criteria"> Hidden Fees</span></li>
    </ul>
    <button class="btn">Join Now</button>
  </div>
  <div id="Ultimate" class="plans">
    <h2>Ultimate</h2>
    <h1>$29.90</h1>
    <p>Billing per Month</p>
    <hr>
    <ul style="list-style: none;" class="packs">
      <li>Bandwidth: <span class="criteria"> 100GB </span></li>
      <li>Onlinespace:<span class="criteria"> 2GB </span></li>
      <li>Support:<span class="criteria"> Yes </span></li>
      <li><span class="criteria">Unlimited</span> Domain</li>
      <li>No<span class="criteria"> Hidden Fees</span></li>
    </ul>
    <button class="btn">Join Now</button>
  </div>
 </div>
<div id="footer">
 <footer>
  <ul>
   <li class="navList" href="#">Privacy</li>
   <li class="navList" href="#">Terms</li>
   <li class="navList" href="#">Contacts</li>
    <li class="navList" href="#">Copyright 2018, Lilas</li>
  </ul>
 </footer>
</div>
</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Open+Sans');
*{
  font-family: "open sans";
  font-size: 16px
}

header{
  position: fixed;
  background-color: white;
  top:0;
  height: 75px;
  width: 100%;
  padding: 0 70px;
  display: flex;
  align-items: center;
  
  box-shadow: 0px 16px 28px -7px rgba(194,187,201,1);
}
#header-img{
  width: 4vw;
  margin-top : 10px;
}
a{
  text-decoration: none;
}
nav{
  width: 100%;
}
ul{
  width: 80%;
  margin: 0 auto;
}
.navList{
  list-style: none;
  display: inline-block;
  padding: 5px 20px;
}
a:hover {
  color: #ff4d4d;
}
ul li a {
  color: black;
  text-decoration: none;
}
.toggle{
  width: 100%;
  padding: 10px 20px;
  text-align: right;
  box-sizing: border-box;
  font-size: 30px;  
  display: none;
}
#viewPlans{
  float: right;
  color: white;
  border:1px solid #fff;
  border-radius: 2em;
  background-color: #ff4d4d;
  padding: 5px 20px;
}
#viewPlans:hover{
  background-color: #b30000;
}
#link{
  color: white;
}
h1{
  font-size: 3vw;
}

#first{
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  background: url("https://images.pexels.com/photos/399161/pexels-photo-399161.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940") no-repeat center fixed;
}
#descFirst{
  width: 40%;
  margin-right: 50px;
  color: #4d4d4d;
}
#form{
  border: 1px solid #cccccc;
  border-radius: 1em;
  background: white;
  width: 400px;
  padding: 20px 30px;;
  box-sizing: border-box;
  text-align: center;
  margin: 100px 0px;
  
}
.input{
  display: flex;
  justify-content;
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  box-sizing: border-box;
  border-radius: 0.5em;
  border: 1px solid #cccccc;
  font-size: 20px;
}
#submit{
  margin-top: 20px;
  width: 100%;
  text-align: center;
  border:1px solid #fff;
  border-radius: 0.4em;
  padding: 5px 20px;
  color: white;
  background-color: #ff4d4d;
  font-size: 15px;
}
#submit:hover{
  background-color: #b30000;
}
#getStarted{
  border:1px solid #ccc;
  border-radius: 0.4em;
  padding: 5px 20px;
  color: white;
  background-color: #ff4d4d;
  }
#getStarted:hover{
  background-color: #b30000;
}
#second{
  text-align: center;
  margin: 90px 100px;
  font-size: 1.2em;
}
.container{
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 70px;
}
#main{
  position: relative;
}
.features{
  text-align: center;
  margin: 30px;
}
p{
  color: #a6a6a6;
}
.desc {
  color: #a6a6a6;
  margin-top: 35px;
}
h3{
  color: black;
}

hr{
  width: 50px;
  border-color: #ff4d4d;
  align: center;
}
#third{
  text-align: center;
  background-image: url('https://images.pexels.com/photos/583846/pexels-photo-583846.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940');
  height: 100%;
  width: 100%;
}
#content3{
  padding: 70px 0px;
  color: #bfbfbf;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#noPlan{
  text-align: center;
  border:1px solid #ff4d4d;
  border-radius: 0.4em;
  padding: 5px 20px;
  color: white;
  background-color: #ff4d4d;
  font-size: 15px;
  margin: 30px;
}
#noPlan:hover{
  background-color: #b30000;
}
#thirdHead{
  color: white;
  font-size: 30px;
  font-weight: bold;
}
#thirdParagraph{
  color: #bfbfbf;
}
#fourth{
  margin: 20px 30px;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}
#descFourth{
  width: 50%;
}

#fourthHead{
  font-size: 30px;
}
#learn{
  border:1px solid #ccc;
  border-radius: 0.4em;
  padding: 12px 27px;
  color: white;
  background-color: #ff4d4d;
  font-size: 0.8em;
  margin: 5px 50px;
  }
#learn:hover{
  background-color: #b30000;
}
#fourthList{
  text-decoration-color: red;
}
span{
  color: black;
}
#fifth{
  margin:  100px 20px;
  text-align: center;
}
#pricing{
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
}
#Economy, #Deluxe, #Ultimate{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% /3);
  margin: 10px;
  padding: 20px;
  border: 2px solid #e6e6e6;
  border-radius: 3px;
}
.criteria{
  color: #ff4d4d;
  font-weight: bold;
}
.packs{
  line-height: 3;
}
.btn{
  margin-top: 20px;
  border:1px solid #fff;
  border-radius: 0.4em;
  padding: 5px 20px;
  color: white;
  background-color: #ff4d4d;
  font-size: 15px;
}
.btn:hover{
  background-color: #b30000;
}
footer{
  width: 70%;
  text-align: right;
  background-color: #404040;
  color: white;
  margin: 50px auto;
  padding: 10px;
  
}
@media (max-width: 700px) {
  #second, .container, #content3, #fourth, #pricing {
    margin: 70px 50px;
    flex-direction: column;
  }
  #first {
    flex-direction: column;
  }
  #descFourth, #Economy, #Deluxe, #Ultimate {
    width: 100%;
  }
  h1{
    font-size: 4vw;
  }
  #listFirst{
    flex-wrap: wrap;
  }
  }
 
              
            
!

JS

              
                
              
            
!
999px

Console