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

              
                <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" rel="stylesheet">
    <title>Document</title>
    
    <link href="./stylesheet.css" rel="stylesheet">


</head>
<body>





<header id="header">
  
  <nav id="nav-bar">
        <div id="imgbg">
                <img id="header-img" src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTjB7lvDOZb7NNKOJHlDM9ZvMCePr21fG9khoPoiguVNISQFKpCtg" alt="icon">
              </div>
    <ul>
      <li><a class="nav-link" href="#video">Home</a></li>
      <li><a class="nav-link" href="#paras">Features</a></li>
      <li><a class="nav-link" href="#footercon2">Contact</a></li>
    </ul>
  </nav>
  
</header>
<div id="title">
<h1>Innovating, prospering and initiating from day one.</h1>
<h2>Join the team today!</h2>
</div>

<div id="formcon">
  <form id="form" action="https://www.freecodecamp.com/email-submit">
    <label for="email">Subscribe: <input id="emailinp" name="email" type="email" placeholder="email..."></label>
    <label id="weekbt" for="duration"><input type="radio" name="duration" value="weekly">Weekly</label>
    <label id="monthbt" for="duration"><input type="radio" name="duration" value="monthly">Monthly</label>
    <button id="subbtn" class="btns"type="submit" value="Submit">Submit</button>
    
  </form>
</div>


<div id="ytvideo">
 
  <iframe id="video" width="660" height="415" src="https://www.youtube.com/embed/dVHiAOQHn9g" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
   
  
</div>


<main id="maincontent">
  
  <div class="paras">
    <h2>Features</h2>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean semper accumsan rhoncus. Quisque fringilla scelerisque turpis non accumsan. Nullam finibus vestibulum maximus. Etiam nec ultricies quam. Donec augue neque, euismod quis tortor luctus, pharetra sodales mauris. Duis vel mi enim. Morbi maximus, eros ut maximus congue, mi nibh dignissim sapien, non sagittis enim ex vel mi.</p>
    <button class="btns">More Info</button>
    
  </div>
  
  <div id="paras" class="paras">
    <h2>Accessability</h2>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean semper accumsan rhoncus. Quisque fringilla scelerisque turpis non accumsan. Nullam finibus vestibulum maximus. Etiam nec ultricies quam. Donec augue neque, euismod quis tortor luctus, pharetra sodales mauris. Duis vel mi enim. Morbi maximus, eros ut maximus congue, mi nibh dignissim sapien, non sagittis enim ex vel mi.</p>
    <button class="btns">More Info</button>
    
  </div>
  
  <div class="paras">
    <h2>Mobility</h2>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean semper accumsan rhoncus. Quisque fringilla scelerisque turpis non accumsan. Nullam finibus vestibulum maximus. Etiam nec ultricies quam. Donec augue neque, euismod quis tortor luctus, pharetra sodales mauris. Duis vel mi enim. Morbi maximus, eros ut maximus congue, mi nibh dignissim sapien, non sagittis enim ex vel mi.</p>
    <button class="btns">More Info</button>
    
  </div>
  
</main>

<div id="pricing">
  
  <div>
    <h2><srtong>35$</srtong>/<em>month</em></h2>
    <ul>
      <li>Lorem ipsum.</li>
      <li>Lorem ipsum dolor.</li>
      <li>Lorem ipsum.</li>
    </ul>
  </div>
  
  <div>
  <h2><srtong>55$</srtong>/<em>month</em></h2>
    <ul>
      <li>Lorem ipsum.</li>
      <li>Lorem ipsum dolor.</li>
      <li>Lorem ipsum.</li>
    </ul>
  </div>
  <div>
    <h2><srtong>75$</srtong>/<em>month</em></h2>
    <ul>
      <li>Lorem ipsum.</li>
      <li>Lorem ipsum dolor.</li>
      <li>Lorem ipsum.</li>
    </ul>
    
  </div>
  
</div>

<footer id="footercon">
  <div id="footercon2">
    <ul>
      <li>Contact listing</li>
      <li>Partnerships</li>
      <li>Legel</li>
    </ul>
  </div>
  
  <div>
  <ul>
      <li>Social Networks</li>
      <li>Banking Causes</li>
      <li>Im out of ideas,lol</li>
    </ul>  
    
  </div>
  
</footer>


    
</body>
</html>
              
            
!

CSS

              
                nav{
    
    width: calc(100% - 20px);
    display:flex;
    
}
  
  #title{
    text-align:center;
    padding-top:15px;
    
  }
  
  body{
    font-family: 'Montserrat', sans-serif;
  }
  
  header{
    display:flex;
    justify-content: space-between;
    position: fixed; /* Set the navbar to fixed position */
    top: 0; /* Position the navbar at the top of the page */
    width: 100%;
    
  }
  #header-img{
    clip-path: circle(40.1% at 50% 50%);
    width:80px;
    height:80px;
    padding-top: 10px;
  }

  nav ul{
    display:flex;
    padding-top:15px;
    padding-right: 20px;
    padding-bottom:15px;
    background-color: grey;
    border-radius: 15px;
    justify-content: flex-end;
    width: calc(100% - 80px);
    
  }
  nav li{
    list-style:none;
    padding: 0px 20px 0px 20px;
    border: 1px solid grey;
    border-radius: 5px;
    margin: 0px 10px;
    background-color: #E28585;
    
    
    
  }
  nav a{
    text-decoration: none;
    color: white;
    font-size: 24px;
  }
  

  #emailinp{
      height:70%;
      margin-top: 0;
        width: 280px;
  }
  
  
  #maincontent{
    display:flex;
    justify-content: space-around;
    margin: 0px;
    box-shadow: 4px 3px 50px #973549;
    border-radius: 25px;
    background-color: #AB9B96;
    border: 2px solid black;
  }
  .paras{
    padding: 20px;
    margin: 50px;
    border: 3px inset #973549;
    border-radius: 25px;
    background-color: #AB9B96;
    
  }
  
  .btns{
    background-color: #973549;
    color:white;
    font-size:18px;
    padding: 3px 20px;
    margin-bottom: 20px;
    border-radius: 15px;
    border:none;
    width: 120px;
    height:30px;
    
  }

  .btns:hover{
    
    background-color: #E28585;
  }
  #formcon{
    display:flex;
    justify-content:space-around;
    height: 50px;
    margin:auto;
    
    
  }
  #ytvideo{
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;

    
     
  }
  #submit{
    
    background-color: #973549;  
    color:white;
    border-radius: px;
    height: 100%;
    font-size: 18px;
    border-radius: 10px;
    align-content: right;
      
  }
 
  
  h1{
    padding-top: 50px;
    text-align:center;
  }
  #footercon{
   
    display:flex;
    justify-content: space-evenly;
    margin: 100px auto;
    padding:10px 25px;
    box-shadow: rgba(0, 0, 0, 0.4) 3px 3px 10px;
    background-color: #AB9B96;
    border: 2px solid #973549;
    border-radius: 25px;
    
    
  }
  #footercon li{
    list-style:none;
    padding: 10px;
    color: white;

    
    
  }
  #monthbt, #weekbt{
      padding-top:15px;
  }
  
  
  #form{
    padding: 0px 25px;
    box-shadow: rgba(0, 0, 0, 0.4) 3px 3px 10px;
    border-radius: 15px;
    width:50%;
    display:flex;
    justify-content: space-evenly;
    align-items: stretch;
  }
  #pricing{
    font-size: 16px;
   display:flex;
    flex-direction: column;
    align-items:center;
    margin: 100px;
   
    
  }
  #pricing li{
    list-style:none;
    padding-top: 20px;
    
  }
  #pricing h2{
    text-align:center;
  }
  #pricing{
      display:flex;
    flex-direction: row-reverse;    
      justify-content: space-evenly;

  }
  #pricing ul{
    text-align:center;
}
  
  #pricing div{   
    border-left: 3px solid #973549;
    border-top: 3px solid #973549;
    border-radius: 25px; 
    box-shadow: rgb(116, 108, 106) 4px 3px 50px;
    background-color: #E28585;

    padding: 0;
    margin-top: 50px;
    margin: 0px 80px;
    width: 100%;
    border: 3px inset #973549;

    /* box-shadow: 4px 3px 50px #973549;
    border-radius: 15px;
    background-color: #AB9B96;
    border: 2px solid black; */

    
  }
  
  @media (max-width:800px){
    #maincontent{
      display:flex;
      flex-direction: column;
    }
  }
              
            
!

JS

              
                
              
            
!
999px

Console