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

              
                 
<head>
    <link rel="stylesheet" type="text/css" href="style.css" >
 
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
 <header id="header">
	<div id="logo">   
     <img src="https://res.cloudinary.com/dtjbncusu/image/upload/v1532115379/logo.png" id="header-img" alt="logo" width=150px height=120px>
	</div>   
   
     <nav id="nav-bar">
		<ul> 
      	<li><a href="#about" class="nav-link">About us</a></li>
      	<li><a href="#example" class="nav-link">Example</a></li>
      	<li><a href="#tours" class="nav-link">Our tours</a></li>
      </ul>
   </nav>
   
 </header>


<section id="about">
	<h3> 
	We are travellers. Independent travelers. We visited not many countries, but every our journey is always filled with events. We try not to stay in any city for more than 3 days. Of course, there are exceptions to these rules)... But in every country there is so much interesting! <br>
	It's no secret that in a company it's more fun and safer to travel. That's why we invite you to join us on one of our future travels. We promise that it will be interesting).
	
	</h3>
 
	<h4>
		Do you want to know more? Write to us!
	</h4>
	<div>
     <form id="form" action="https://www.freecodecamp.com/email-submit">
        <input type="email" placeholder="Enter your email" id="email" required name="email"></input>   
         <input type="submit" id="submit" name="submit" value="Submit" class="btn"></input>  
     </form>
   </div>  
</section> 

<section id="example">
	    <iframe width="739" height="416" src="https://www.youtube.com/embed/6a4PgAn9ELE" frameborder="0" 
	    allow="autoplay; encrypted-media" allowfullscreen id="video"></iframe>  

</section>

<section id="tours">
	<div class="tour">
		<h2>Sri-Lanka</h2>
		<div class="img-tour"><img src="https://res.cloudinary.com/dtjbncusu/image/upload/v1533581046/srilanka300.jpg" 
		alt="Sri Lanka picture" >
		</div> 
		<ol id="description">
			<li>Incredible ocean power</li>
			<li>Amazing beaches</li>
			<li>Mysterious ancient temples</li>	
			<li>1300$</li>	
		</ol>
    <button class="btn">Select</button>
	</div>
	<div class="tour">
		<h2>Peru</h2>
		<div class="img-tour">		
		<img src="http://res.cloudinary.com/dtjbncusu/image/upload/c_scale,h_200,w_300/v1533581041/peru300.jpg" 
		alt="Peru picture" class="photo"> 
		</div>
		<ol>
			<li>Inca's Lost City - Machu Picchu</li>
			<li>Flight over the Nasca Lines</li>
			<li>Deepest Canyon In The World</li>	
			<li>2400$</li>	
		</ol>
    <button class="btn">select</button>
	</div>
	<div class="tour">
		<h2>Malaysia. Borneo</h2>
		<div class="img-tour">		
		<img src="http://res.cloudinary.com/dtjbncusu/image/upload/c_scale,h_200,w_300/v1533235721/borneo1.jpg" 
		alt="Borneo picture" >
		</div>
		<ol>
			<li>Wild nature</li>
			<li>Exotic animals</li>
			<li>Climbing Mt Kinabalu</li>	
			<li>1600$</li>	
		</ol> 
    <button class="btn">select</button>
	</div>
	
</section>	
</body>
 <footer>
    <ul>
      <li><a href="#">Privacy</a></li>
      <li><a href="#">Terms</a></li>
      <li><a href="#">Contact</a></li>
    </ul>
    <span>Copyright 2018, Iryna Halayeuskaya</span>
  </footer>
</div>
</div>
              
            
!

CSS

              
                *{
  margin: 0;
  padding: 0;
  font-size: 100%;
  
}

body{
	font-family: Tahoma, Arial,   Helvetica, sans-serif;
	text-align: center;
	position: relative;
}
.btn {
  padding: 0.8em;
  font-size: 0.6em;
  font-weight: bold;
  border: 0.01em solid black;
  background-color: #463a0d;
  border-radius: 1.5em;
  color: white;
  margin: 10px;
  opacity: 0.9; 
}
.btn:hover {
  background-color: #b19d69;
} 

header{
  display: flex;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1;
  background-color: #3d3000;
  opacity: 0.7;
  flex-wrap:wrap;
  height:119px;
  
}

#logo {
  display: flex;
  align-items: center;
  width: 20vw;
}

#header-image{
  max-width: 300px;
  display: flex;
  align-items: center;
}

header ul{
  width: 60vw;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding-top: 6%;
  flex-wrap:wrap;
  padding-left: 1em;
}

li a:hover {
  color: #b4a16d;
}

.nav-link{
  color: white;
  font-size: 1.5em;
  font-weight: 500;
  text-decoration: none;
  padding-left: 1em;
}

li{
	list-style: none; 
}

#about{
   margin-top: 119px;
   display: flex;
	 flex-direction: column;   
   justify-content: center;
   align-items: center;
   height: auto;
   flex-wrap: wrap;
   align-self: center;
   padding: 1.2em 10%;
   font-size: 1.3em;
}

#about h3,h4{
  padding-bottom:1em;
}
#about .btn{
  font-size: 0.6em;
}

#example{
  margin: 1rem auto;
  display: flex;
  justify-content: center;
  
} 
 
#tours{
  margin-top: 80px;
  display: flex;
  flex-direction: row;
  justify-content: center;
 
}
  
.tour{
	display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 33%;
  margin: 10px;
  border: 1px solid #000;
  border-radius: 3px;
  flex-wrap:wrap;
  
}

h2{
  color: black;
  width: 100%;
  text-transform: uppercase;
  font-weight: 800;
  padding-top:0.5em;
}

#tours img{
  max-width:100%;
  display: block;
  height: auto;
  padding: 1em 0;
}

#tours ol{
  padding: 1em 0;
  font-size: 1.2em;
  }

footer {
  margin-top: 30px;
  background-color: #3d3000;
  padding: 20px;
  opacity: 0.7;
  }

footer ul {
  display: flex;
  justify-content: flex-end;
  flex-direction: row;
  padding-left:30%;
  }  

footer li {
  padding: 0 10px;
  }

a {
  color: #f2d7d0;
  text-decoration: none;
}
  
footer span {
   margin-top: 5px;
   display: flex;
   justify-content: flex-end;
   font-size: 0.9em;
   color: white;
   }
 
#tours .btn{
  font-size: 1em;
}







 @media (max-width: 739px){
  nav{
    margin-top: 10px;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 0 40px;
    }
  #header-image{
		min-width:20vw;  
		display: flex;
    } 
  ul{
	  display: flex;
	  flex-direction: column;
	  justify-content: space-around;
  	width: 35vw;
	  align-items: center;
	  }
#tours{
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    }
.tour{
    max-width: 300px;
    width: 100%;
    margin:0 auto;
    margin-bottom: 10px;
    }
h2{
    max-width: 300px; 
    width: 100%;
    margin: 0 auto;
    margin-bottom: 10px; 
    }
#example{
    width:80%;
    }


}

              
            
!

JS

              
                
              
            
!
999px

Console