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

              
                <html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
     <meta charset="utf-8">
    <link rel="stylesheet" type="text/css" href="styles.css">
	<link href="https://fonts.googleapis.com/css?family=Jua" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">


  </head>
  <body>
    <div id=top-header>
    
      </div>
      <header id=header>
        <img id="header-img" src="https://cdnassets.com/ui/resellerdata/630000_659999/644503/supersite2/supersite/themes/MinimalGreen-MyTheme/images/logo.gif">
     
       <nav id="nav-bar" >
  <a  href="#home"  class="nav-link">Home</a>
  <a  href="#domains" class="nav-link">Domains</a> 
  <a  href="#website-video" class="nav-link">Websites</a> 
  <a  href="#home" class="nav-link">Hosting</a>
  <a  href="#home" class="nav-link">Eamil</a>
  <a  href="#home" class="nav-link">Security</a>
  <a  href="#home" class="nav-link">About us</a>
    <a href="#">Login/Signup</a>
 
        
</nav>
      </header>
    
    <section id="home">
      <h2>Start Building your web presence at AED 45.75/mo</h2>
      <div id=icons>
       <i class="fa fa-globe"></i><br>
        Domain Name<br><br>
        <i class="fa fa-lock" aria-hidden="true"></i><br>
        SSL Certificate<br><br>
        <i class="fa fa-fire" aria-hidden="true"></i><br>
        Host
      </div>
    </section><br><br><br>
    <section id="website-video">
   <iframe id='video' width="560" height="315" src="https://www.youtube.com/embed/O5LmKx0CH2E" frameborder="0" allowfullscreen></iframe>
</section><br><br><br>
    
    <section id="domains">
      <h1>Get your business online today</h1>
    </section><br>
    <div id="plan">
    <div id="plans-one">   
    <p>
     <h4> Why do we use it?<h4>
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, 
</p>
       <button type="button">View Plans</button>
    </div><br>
      
    <div id="plans-two">   
      <h4> Why do we use it?<h4>
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, 
</p>
        <button type="button">View Plans</button>
    </div><br>
    <div id="plans-three">   
      <h4> Why do we use it?<h4>
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, 
</p>
        <button type="button">View Plans</button>
    </div><br>
    </div>
  
    <form id="form" type="post" action="https://www.freecodecamp.org/email-submit">
      Please enter your Email!<br>
      <input placeholder="Enter your email" id="email" type="email" target="_blank" name="email" required ><br><br>
      
      <input id="submit" type="submit" value="Subscribe" >
      </form>
    
    </body>
  </html>
              
            
!

CSS

              
                body
{
  	font-family: 'Jua', sans-serif;
 margin:0px; 
}
.clear {
  clear: both;
}

#login-header a
{
  color:black;
  
}
#login-header a:hover
{
  color:green;
}
#login-header
{
  float:right;
  margin-right:200px;
  margin-top:5px;
}
#header img
{
  margin-left:100px;
  margin-top:100px;
}
#nav-bar
{
    width: 100%;
  overflow: hidden;
  background-color: #333;
  background-color:black;
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  
}
#nav-bar a
{
  float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
  margin-left:50px;
  
}
#nav-bar a:hover
{
  background-color: #ddd;
 color:green;
  
}
#home
{
  border-style: ridge;  
}
#home h2
{
 text-align:center;
  
  color:#2fbe15;
}
#website-video{
  margin-top: 1%;
  margin-left: 30%;
  z-index: 1;
}
#icons
{
  text-align:center;
  	font-family: 'Jua', sans-serif;
}
form
{
  text-align:center;
}
#submit
{
  background-color:#2fbe15;
		color: white;
		border: none;
		cursor: pointer;
		font-size: 16px;
		padding: 10px 22px;
		margin-top: 5px;
		border-radius: 5px;
}
button
{
  background-color:#2fbe15;
		color: white;
		border: none;
		cursor: pointer;
		font-size: 16px;
		padding: 10px 22px;
		margin-top: 5px;
		border-radius: 5px;
}
#domains h1
{
 text-align:center;
  color:#2fbe15; 
}
#plan
{
 display: inline-block;
   
}
#plans-one
{
 
  
}
#plans-two
{
  
   
}
plans-three
{
  display: inline-block;
   
}
h4
{
  text-align:center;
  	font-family: 'Jua', sans-serif;
}

@media screen and (max-width: 600px) 
{
  #nav-bar.responsive {position: relative;}
  .topnav.responsive.icon 
  {
    position: absolute;
    right: 0;
    top: 0;
  }
  #nav-bar.responsive a 
  {
    float: none;
    display: block;
    text-align: left;
  }
}

              
            
!

JS

              
                function myFunction() {
    var x = document.getElementById("myTopnav");
    if (x.className === "nav-bar") 
        {
        x.className += " responsive";
    } else {
        x.className = "nav-bar";
    }
}
              
            
!
999px

Console