Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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>
<div class="main-page">
  <header id="header">   
    <div class="logo">
      <img id="logo-img" width="250px" src="https://static.gamespot.com/uploads/scale_tiny/1197/11970954/3246063-aco_pack_agnostic_bxsht2d_e3_170611_330pm_us.jpg"/>
    </div>
    
    <nav class="nav-bar">
      <ul id="nav-bar-1">
        <li><a href="#media">Media</a></li>
         <li><a href="#about-us">About us</a></li>
    <li><a href="#contact-us">Contact Us</a></li>
      </ul>
    </nav>    
  </header>
  
  <section id="media">
    <h2>Media</h2>
    <div id="images">
      <img width="250px" src="https://static.gamespot.com/uploads/scale_tiny/1197/11970954/3246063-aco_pack_agnostic_bxsht2d_e3_170611_330pm_us.jpg"/>
        
      <img width="250px" height="250"src="https://gpstatic.com/acache/33/17/1/uk/s5-7f761d06ff8d326eb03e1e9532696ada.jpg"/>
      
      <img width="250px" src="https://target.scene7.com/is/image/Target/52652029_Alt02?wid=488&hei=488&fmt=pjpeg"/>   
   
      <div class="video">
      <iframe width="560" height="315" src="https://www.youtube.com/embed/cK4iAjzAoas" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
      </div>
    </div>
  </section>
  
  
  <section id="about-us">
    <div class="text">
      <h2>About the Game</h2>
      <p><strong>Assassin's Creed Origins</strong> is an action-adventure video game developed by Ubisoft Montreal and published by Ubisoft. ... The game will be followed by Assassin's Creed Odyssey, which takes place in Ancient Greece and is scheduled to be released in October 2018.</p>
    
    </div>
  </section>
  
  <section id="bg-img">
    <div class="banner">      
     <img alt="banner" id="image-3" src="https://www.hrkgame.com/media/games/.thumbnails/assassorig_cover_cover.jpg/assassorig_cover_cover-460x215.jpg">
      <h2>Click Here</h2>
      <h3>For More Content</h3>    
    </div>
  </section>
  
  <section id="contact-us">
    <div class="form">
      <form action="/action_page.php">
        <label id="form-1" for="fname">First Name</label><br>
        <input id="form-1" type="text" id="fname" name="firstname" placeholder="Your name..."><br>
        
        <label id="form-1" for="lname">Last Name</label><br>
        <input id="form-1" type="text" id="lname" name="lastname" placeholder="Your last name..."><br>
        
        <label id="form-1" for="lname">Mobile Number</label><br>
        <input id="form-1" type="text" id="mobile-number" name="mobile-number" placeholder="Mobile Number..."><br>
        
        <label id="form-1" for="lname">Email</label><br>
        <input id="form-1" type="text" id="email" name="email" placeholder="Email..."><br>
        
        <label id="form-1" for="country">Preffered Contact Method</label><br>
        <select id="form-1" name="country">
          <option value="australia">Call</option>
          <option value="canada">Email</option>
          <option value="usa">Letter</option>
          <option value="usa">Text</option>
        </select><br>
        <label id="form-1" for="subject">Any Comments</label><br>
        <textarea id="form-1" name="comments" placeholder="Any Comments..." style= "height:170px"></textarea><br><br>
        <input id="form-1" type="submit" value="Submit">
      
          
    </div>
  </section>
  
    <footer>
      <div class="wrapper">
        <nav>
            <ul class="nav-bar-2">
            <li><a href="#media">Media</a></li>
             <li><a href="#about-us">About us</a></li>
        <li><a href="#contact-us">Contact Us</a></li>
             </ul>
            </nav>
        <span>Copyright 2018, Assassin's Creed Origins</span>
      </div>
  </footer>
  
  </body>
              
            
!

CSS

              
                @import 'https://fonts.googleapis.com/css?family=Lato:400,700';

body{
  margin: 0;
  font-family: 'lato', georgia, times;
}

.logo{
  text-align: center;
  margin-top: 90px;
}

#logo-img{
  border: none;
  border-radius: 100px;
}


header nav ul{
  list-style-type: none;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #B4B8C5;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  position: fixed;
  top: 0;
  z-index: 1;
   @media (max-width: 650px) {
    margin-top: 150px;
    width: 100%;
    position: relative;
  }
}

header li a{
  display: block;
  border-radius: 5px;
  color: black;
  text-align: center;
  padding: 18px 16px;
  text-decoration: none;
}

header li a:hover{
  background-color: #e5bb77;
}

#media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  height: 750px;
  margin-top: 50px;
  background-color: #eee;
  padding: 0px;
}


h2{
    margin-bottom: 40px;
    text-decoration: none;
}

#media img{
  margin-bottom: 0px;
  width: 250px;
  border-radius: 30px;
  padding: 15px;
}



.video{
  margin-top: 20px;
}

#about-us{
  max-width: 100%;
  width: 100%;
  margin: auto;
  padding: auto;
  text-align: center;
}

.text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 200px;
    width: 80vw;
    margin: 30px auto;
}

#bg-img{
  max-width: 100%;
  width: 100%;
  margin: auto;
  padding: auto;
  text-align: center;
  background-color: #eee;
  height: 300px;
  object-fit: fill;
}

.banner{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  display: inline-block;
  position: relative;
  z-index: 0;
}

.banner img{
  margin: 30px 0px; 
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: inline-block;
  transition: .2s;
}

.banner:hover img{
  filter: blur(1px) brightness(80%);
  box-shadow: 0 0 10px #e5bb77;
  cursor: pointer;
  width: 100%;
}


.banner :not(img){
  position: absolute;
  top: 30%;
  z-index: 0;
  color: #fff;
  text-align: center;
  width: 100%;
  opacity: 0;
  transition: .3s;
  cursor: pointer;
}

.banner h3{
  top: 45%;
}

.banner:hover :not(img){
  opacity: 1;
}


#contact-us-1{
  width: 100%;
  height: 650px;
}

.form{
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  display: block;
  align-content: space-around;
  margin-top: 20px;
}

#form-1{
  margin-bottom: 20px;
}

input[type=text]:hover {
    border: 1px solid black;
}

select{
    width: 50%;
    padding: 16px 10px;
    border: none;
    border-radius: 4px;
    background-color: #f1f1f1;
    margin: 0;
}

/*------button-----*/

input[type=button], input[type=submit], input[type=reset] {
    background-color: #73aad7;
    border: none;
    color: white;
    padding: 10px 30px;
    text-decoration: none;
    margin-top: -10px;
    cursor: pointer;
    border-radius: 5px;
}

.form input:hover{
  background-color: #e5bb77;
}




/*------footer------*/

footer{
  width: 100%;
  background-color: #222;
  padding: 20px 0px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  color: white;
}

.nav-bar-2{
  position: relative;
  list-style: none;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  color: white;
}

footer li a{
  padding: 0px 5px;
  text-decoration: none;
  color: white;
}
              
            
!

JS

              
                
              
            
!
999px

Console