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

              
                <!DOCTYPE html>
<html>

  <!-- At smaller screen sizes the nav bar is scrollable try it out -->
<head>
<title> </title>
  <style>
  </style>
</head>
  
<body>
  <header> <h1> 
    <img src="https://www.pngmart.com/files/13/Halo-Logo-PNG-Image.png" alt="gif" > 
</h1>
   <div class="nav">  
     <ul>
       <li><a href="https://www.xbox.com/en-US/games?xr=shellnav">Store</a></li>
        <li><a href="https://gear.xbox.com/pages/halo">Merch</a></li>
       <li><a href="https://forums.halowaypoint.com/">Community</a></li>
        <li><a href="https://support.halowaypoint.com/hc/en-us">Support</a></li>
</ul> </div> 
    </header>

  
  
<br>
  
 

 <section-top>
   <div class="centerbar">
     
     
  <bodyimg>
<aimage>
  
  </aimage>   
   </bodyimg> 
     </div>
   


   </section-top>

   
  <titleimg>
    <h1 id="h1a">NOW AVAILABLE ON</h1> 
      <div class="socail-proof-bar">
  <img src="https://assets.xboxservices.com/assets/53/8a/538afa58-a18e-4c33-88ce-5fb7abb7a9b2.svg?n=735866_Hero-Logo_450x65.svg" id="size1NEW" draggable="false">
    
     <img src="https://www.metrothegame.com/assets/Footer-Logos/xbox.png" id="size1" draggable="false">
  
    
     <img src="https://www.metrothegame.com/assets/Footer-Logos/windows-logo.png" id="size2" draggable="false">
  
    
     <img src="https://www.metrothegame.com/assets/Uploads/pages/images/steamlogo2.png" id="size2" draggable="false">
    
       
     <img src="https://www.metrothegame.com/assets/Uploads/pages/images/google-stadia.png" id="size2" draggable="false">
  
    
       
     <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQkuY45SrJ8_CXDovYLzXaxSFhzsyA5AgH6fQ&usqp=CAU" id="size2" draggable="false">
  
  
  
  </div>
    
  <div class="centerbar">
      <div class="buy-box-wrapper">
    <div class="buy-box">
      <img src="https://raw.githubusercontent.com/kriskosta/siteimages/main/steamhalositemasterchiefpic.png" id="buy-box-img" draggable="false"> 
      <div class="buy-box-inner"> 
        <iframe width="560" height="315" src="https://www.youtube.com/embed/4qBkw4YwGrM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
        
        <p>The series that changed gaming forever, featuring five legendary titles in one package. </p>
      <button id="btn-buy">  Add to cart</button>
      </div>
      
   </div> 
    
<!--   <img src="https://www.oneindir.com/wp-content/uploads/2019/12/Halo-Reach-Master-Chief-Collection.jpg" id="buy-box-img-outside">   -->
    </div>
     </titleimg>
 
     </div>
 
 
  <section>
     <section-spacer>
     <h1>INCLUDED TITLES </h1>
    </section-spacer>
   <div class="centerbar-container">
       <article0> 
         
       <div class="container">
         
         
           <div class="game-item">
       <img src="https://images-na.ssl-images-amazon.com/images/I/51zanRECLjL._AC_.jpg" alt="pic" style="height:300px" draggable="false">
              <div class="gameinfo">
              
               <img src="https://imgix.kotaku.com.au/content/uploads/sites/3/2014/09/06/hwuibyy7to9pnbxvvdsv.gif?auto=format&fit=fill&q=65&w=720&nrs=40&fm=gif" alt="gif" draggable="false">
              <p>Halo Combat Evolved Anniversary</p>
              <p> DEVELOPER: 
Bungie</p>
              <p> PUBLISHER: Microsoft</p>
              <button class="cartbutton">Add to cart</button>  <price> $19.99</price>
              
              
  </div>
      </div>
         
           <div class="game-item">
       <img src="https://m.media-amazon.com/images/M/MV5BMjdmNDVhNTYtYzI3OC00MWVjLTkwNTktZjNiOTEzYzRlOTA1L2ltYWdlL2ltYWdlXkEyXkFqcGdeQXVyNTAyODkwOQ@@._V1_.jpg" draggable="false">
          <div class="gameinfo">
              <img src="https://steamuserimages-a.akamaihd.net/ugc/294230565708915646/A9836A27F0CB8F6E08864C686D855532CA1F0DC0/" alt="gif" draggable="false">
              <p> Halo 2 Anniversary</p>
              <p> DEVELOPER: 
Bungie</p>
              <p> PUBLISHER: Microsoft</p>
              <button class="cartbutton">Add to cart</button>  <price> $25.99</price>
  </div>
         </div>

         
          <div class= "game-item">
       <img src="https://upload.wikimedia.org/wikipedia/en/thumb/b/b4/Halo_3_final_boxshot.JPG/220px-Halo_3_final_boxshot.JPG" alt="pic" style="height:300px" draggable="false">
              <div class="gameinfo">
              
               <img src="https://thumbs.gfycat.com/DefensiveFearfulBufflehead-max-1mb.gif" alt="gif" draggable="false">
              <p> Halo 3</p>
              <p> DEVELOPER: 
Bungie</p>
              <p> PUBLISHER: Microsoft</p>
              <button class="cartbutton">Add to cart</button>  <price> $7.99</price>
              
              
  </div>
      </div>
  
          <div class="game-item">
   <img src="https://www.mobygames.com/images/covers/l/362777-halo-the-master-chief-collection-halo-3-odst-xbox-one-front-cover.png" draggable="false">
             <div class="gameinfo">
                 <img src="https://4.bp.blogspot.com/-M2PKv_7bn_Q/WuZmF79CGKI/AAAAAAAAH_c/6sIdFQNVnVUFFJfb3cN7V02AHS4QBrI2ACLcBGAs/s1600/buck%2Band%2Bromeo.gif" alt="gif" draggable="false">
              <p> Halo 3: ODST</p>
              <p> DEVELOPER: 
Bungie</p>
              <p> PUBLISHER: Microsoft</p>
              <button class="cartbutton">Add to cart</button>  <price> $12.99</price>
  </div>
    </div>
  
       <div class="game-item">
          <img src="https://cdn.europosters.eu/image/1300/posters/halo-reach-cover-i8943.jpg" draggable="false">
          <div class="gameinfo">
              <img src="https://i.makeagif.com/media/8-14-2015/H3wgoq.gif" alt="gif" draggable="false">
              <p> Halo Reach</p>
              <p> DEVELOPER: 
Bungie</p>
              <p> PUBLISHER: Microsoft</p>
              <button class="cartbutton">Add to cart</button>  <price> $15.99</price>
  </div>
         </div>
  
          
 </div>
  
         </article0>
       </div>
     
       <br>


       
       
<br>
<br>
  <footer>
          <div class="center">
  <div class="item1">
     This website is built by Kris Kosta © 2022 <a href= "https://codepen.io/kjkosta">https://codepen.io/kjkosta </a>  
 </div>
       </div>
       </footer>
</section>
       
</body>

</html>
              
            
!

CSS

              
                html {
  font-family: sans-serif;
}

* {
  box-sizing: border-box;
  
}

body {
margin-bottom: 0;
overflow: auto;
margin: 0;
width: 100%;
height: 700px;
background-color: black;
padding-bottom: 0px;
overflow-x: hidden;
padding-top: 0px;
}


/* width */
::-webkit-scrollbar {
width: 8px;
}
/* Track */
::-webkit-scrollbar-track {
background: black;
 
  border-radius: 8px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}
/* Handle */
::-webkit-scrollbar-thumb {
border-radius: 10px;
background:white;
}

h1 {
  color: white;
  text-align: center;
  line-height: 0;
  padding: 10px;
  top: 0;
  width: 100%;
  background: black;
  font-size: 140%;
  margin: 0px;
  box-shadow: inset 0 0px 10px rgba(0, 0, 0,11.5);
}

h1 > img:hover{
  cursor: pointer;
}

.nav {
  height: 60px;
  flex: 100%;
  display: flex;
  padding-left: 25%;
  padding-right: 25%;
  margin-top: 0px;
  color: white;
  background-color: black;
  box-shadow: inset 0 0px 10px rgba(0, 0, 0,11.5);
  z-index: 1;
}

.nav ul {
  padding: 0;
  list-style-type: none;
  flex: 1;
  display: flex;
  font-weight: bold;
}

.nav li {
  display: inline;
  text-align: center;
  flex: 1;
  
}

.nav a, .nav span {
  display: block;
  font-size: 100%;
  height: 3rem;
  line-height: 1.7;
  text-transform: uppercase;
  text-decoration: none;
  color: white;
}

.nav li:hover {
 background-color: white;
 color: black;
 border-radius: 50px;
}

.nav span:hover, .nav a:hover {
   color: black;
}

section-top
{
  display: block;
  margin-top: 0px;
    height: 56vw; 
height: 36vw; 

}

section
{
margin-top: 0px;
height: auto;
}

section > .centerbar{
  overflow: hidden; 
  
}

bodyimg{
position: absolute;
top: 15%;
background-image: url('https://store-images.s-microsoft.com/image/apps.4881.64125392135012540.690e8de2-9f23-4b58-a55c-aeaf24185e0b.04a3af7c-808b-4008-9767-9a3fac97f24a?mode=scale&q=90&h=720&w=1280&format=jpg');
background-repeat: no-repeat;
z-index: -2;  
width: 100%;
/* //height: 830px; */
background-size: 100vw;
padding-top: 40%;
overflow: hidden;
  height: 56vw; 

}

bodyimg > .centerbar > img{
  width: 500px;
  height: 100%;
  
}

titleimg {
  margin-top: 10;
  bottom: -10px;
/*   
   position: relative;
  border: solid white; */
 
}

section-spacer > h1{

 margin-top: 40px;
 
}

.centerbar > article0{
   margin-top: 40px;
  
}

titleimg > .centerbar > img{
  bottom: 10px;
  width: 500px;
  height: auto;
  margin-top: -10px;
 width: 30%;
}
aimage{
/*  rain gif  */
  position: absolute;
  //position: relative;
  background-image: url("https://i.gifer.com/SFFd.gif");
  opacity: 30%;
  width: 100%;
/*   height: 970px; */
  height: 100%;
  z-index: -1;
  margin-top: 0px;
  top: 0px;
  background-repeat: no-repeat;
 // background-size: 100% 100%;
  overflow: hidden; 
  background-size: 100vw;
  min-height: 30vw;
  max-height: 100vw;

    
}

/* White container wrap for games */
article0{
  width: auto;
  postion: center;
  margin-left: 0, auto;
  margin-right: 0, auto;
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  font-size: auto;
  padding: 6px;
  background-color: white;
  top: 0px;
  
/*   box-shadow: inset 0 0 10px rgba(0,0,0,.5); */
  
  
/*   filter: drop-shadow(0 0 1rem black); */
}


img{
  height: auto;
  width: 100%;
}

footer{
 margin-bottom: 0;
 background: black;
 color: white;
 padding: auto;
 height: 150px;
 display: flex;
 flex-wrap: wrap;
 overflow-x: hidden; 
 text-align: center; 
}



/*-------------CONTAINER-------------  */
.container {
 
 display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 10px;
  
}

img{
  height: auto;
  width: 200px;
}
/*-------------GRIDS-------------  */

.game-item:hover{
  cursor: pointer;
  filter: drop-shadow(0 0 1rem black);
  transition: 0.5s all;
} 



/*------------- Center -------------  */
.centerbar {
  margin: auto;
  width: auto;
  padding: 1px;
  justify-content: center;
  align-items: center;
   display: flex;
  margin-top: 10vw;
  overflow: hidden; 
 
 
}

.centerbar-container {
  margin: auto;
  width: auto;
  //border: 3px solid green;
  padding: 1px;
  justify-content: center;
  align-items: center;
   display: flex;
   margin-top: 25px;
 
 
}









/* ------------- Game Info Box -------------*/

.gameinfo{
  position: absolute;
  width: 200px;
  background-color: black;
  display: inline-block;
  transition: all 1s;
  margin-left:-200px;
  color: white;
  overflow: hidden;
  z-index: 0;
  margin-top: 300px;
  height: 0px;
}

/*   backdrop-filter: blur(10px); */


.game-item:hover > .gameinfo{
 height: 300px;
 margin-top: 0px;
 opacity: 1; 
 
}

/* Old hover bottom */
/* 
.gameinfo:hover {
 height: 300px;
 margin-top: 0px;
 opacity: 1; 
 
} */



/* ----------- Divs INSIDE Info Box ------------*/

.cartbutton {
  background-color: #4CAF50; 
  border: none;
  color: white;
  height: auto;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: auto;
  margin-left: 10%;
  filter: drop-shadow(0 0 1rem black);
  margin-right: 12px;
  transform: scale(1.2);
}

.cartbutton:hover{
cursor: pointer;
transition: 1.6s all;
box-shadow:20px 20px 50px 10px #58cc5c inset; 
}



.gameinfo > p {
  padding-left: 10px;
  padding-right: 10px;
}

.gameinfo > .cartbutton {
   transition: 0s all;
}


/* --------Center Div-------*/

.center {
  margin: auto;
  width: auto;
  padding: 1px;
  justify-content: center;
  align-items: center;
  display: flex;
  
}


/* screen sizes */


@media (max-width: 1083px){

  .nav{padding: 0px;}
  .nav span:hover, .nav a:hover, .nav li:hover {
  background: transparent;
  color: #aaa;
  border: none;
  }
  
}


@media (max-width: 1083px){
  
  ::-webkit-scrollbar {
width: 0px;
}
 
  /* Handle */
::-webkit-scrollbar-thumb {
border-radius: 10px;
background: transparent;
}


 .container{
    
  display: grid;
  grid-gap: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
   background: black;
   border: black;
  }
  
  .game-item{
    grid-column: span 2;
   border: solid white;
    border-radius: 10px;
    overflow:hidden;
  }
  article0{
    background: none;
  }
  
   titleimg > .centerbar > img{
    width: 40%;
  }
 
}


@media (max-width: 550px){

  titleimg > .centerbar > img{
    width: 50%;
  }
.nav {
  overflow: auto;
  overflow-y: hidden;
  white-space: nowrap;
  width: 100vw;
  }
  
 .nav > ul > li >a{ 
  color: white;
  display: inline-block;
  text-align: center;
  padding: 14px;
  line-height: 0.2;}
    
.nav li:hover {
 background-color: black;
 color: white;}
  
 .nav a:hover {
  color: white;}


  article{overflow: hidden;}

}



/* NEW ADDONS */

.socail-proof-bar{background: black; display: block; width: 100%;  height: 100px; z-index: 1; 
  display: flex; flex-direction: row; justify-content: center;
  padding-top: 0px; margin-top: 200px;}

.socail-proof-bar > img{max-height: 40px; margin-left: 40px; margin-top: 20px;}
#size2{max-height: 60px; width: auto; margin-top: 10px;}

 @media(max-width: 1170px){
.socail-proof-bar > img{display: block; max-height: 40px; margin-left: 40px; margin-top: 20px;}
.socail-proof-bar{width: auto; height: auto; margin-top: 0px; flex-wrap: wrap; align-items: center;} 
.buy-box-wrapper{display: flex; flex-direction: row; margin-bottom: 20px;}} 


#h1a{margin-bottom: -170px; margin-top: 160px;}

.buy-box-wrapper{display: flex; flex-direction: row; margin-bottom: 20px;}

.buy-box{background: 
#040d16; background-image: url("https://videogamefortress.files.wordpress.com/2022/02/halo-infinite-zeta-halo.jpg?w=1108&h=628&crop=1"); background-size: cover; display: block; width: 1000px; display: flex; flex-direction: row; align-items: left;}

#buy-box-img{width: auto; height: auto; margin-left: -200px;}

.buy-box-inner{background: linear-gradient(#1c2d41, #1a2737); display: block; display: flex; flex-direction: column; align-items: center; padding: 20px; height: 510px;}

#buy-box-img-outside{width: 400px; height: auto;}


.buy-box-inner > p{color: white; font-family: "Droid Serif","Helvetica Neue",Helvetica,Arial,sans-serif; text-align: center; }

#btn-buy{background: linear-gradient(#75af23, #598b1b); 
  
  color: #d2efa9; border-radius: 4px; font-size: 25px; width: 200px; height: 50px; margin-top: 40px; transition: all 0.2s;}

#btn-buy:hover{cursor: pointer; background: linear-gradient(#8dd428, #6ba620); color: white;}


.cartbutton:hover{
cursor: pointer;
transition: 1.6s all;
box-shadow:20px 20px 50px 10px #58cc5c inset; 
}


@media(max-width: 1330px){
.buy-box-wrapper{display: flex; flex-direction: column; margin-bottom: 20px; }
.buy-box{background-size: 100%;  width: 600px; flex-direction: column; align-items: left;}
#buy-box-img{width: 80%; height: auto; margin-left: 0px; margin-top: -40px;} 
}


@media(max-width: 612px){ 
  iframe{width: 100%; height: 70%;}
.buy-box-wrapper{display: flex; flex-direction: column; margin-bottom: 20px; margin-top: 30px;}
.buy-box, .buy-box-inner{background-size: 100%;  width: 100vw; display: flex; flex-direction: column; align-items: left;}
  .buy-box-inner{height: 500px;}
 #buy-box-img{width: 80%; height: auto; margin-left: 0px; margin-top: -40px;}
  
#size2{max-height: 40px; width: auto; margin-top: 10px;}
.socail-proof-bar > img{max-height: 20px; width: auto; margin-top: 20px;}}




 @media(max-width: 1170px){
   #h1a{display: block; margin-bottom: 0px; margin-top: 80px; padding-top: 40px;}}

  @media(max-width: 612px){ 
    #h1a{margin-top: 24px; padding-top: 20px;}}

@media(max-width: 312px){ 
#h1a{margin-top: 10px; font-size: 16px;}
.socail-proof-bar > img{margin-left: 4px; margin-right: 4px; margin-top: 20px; height: 18px;}
#size2{height: 30px; width: auto; margin-top: 10px;}}

.centerbar{overflow: visible;}
.socail-proof-bar > img{margin-left: 20px; margin-right: 20px;}


@media(min-width: 1170px){
   #h1a{margin-bottom: -180px; margin-top: 200px; padding-top: 40px;}}




@media (max-width: 436px){
  .centerbar-container, article0, .container {padding: 0px; overflow: hidden;}
  .game-item{overflow: hidden;}
  .game-item > img{width:auto; height: auto; background-size: cover;}
  
  .game-item{width: 170px; height: 270px; display: flex;overflow: hidden;}
 .game-item:hover > .gameinfo{height: 266px; overflow: hidden;}
  
.gameinfo{
 
  overflow: hidden;
  width: 100%;
  background-color: black;
  font-size: 14px;
  margin-left: -2px;
  margin-top: 262px; 
  border-radius: 10px;
  height: 0px;
  width: 167px;}

  .game-item > img{
  overflow: hidden;}

}


#size1{transform: scale(0.8);}
#size1NEW{transform: scale(1.1);}
              
            
!

JS

              
                
              
            
!
999px

Console