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>

<head>
  <link rel="stylesheet" media="screen" href="https://fontlibrary.org/face/robotech-gp" type="text/css"/>

  <title> </title>
  <style>
  </style> 
</head>
  
<body>
  
<div  <header> <h1 id="img-h1"> 
   <a href="https://www.starwars.com/"> <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/6c/Star_Wars_Logo.svg/1280px-Star_Wars_Logo.svg.png" id="header-img" draggable="false"> </a>
</h1>
   <div class="nav">  
     <ul>
       <li><a href="https://www.shopdisney.com/star-wars-content/">Store</a></li>
        <li><a href="https://www.starwars.com/series">Series</a></li>
       <li><a href="https://www.starwars.com/community">Community</a></li>
        <li><a href="https://www.starwars.com/databank">Databank</a></li>
</ul> </div> 
    </header>

  
       <section> 
         
           
<!-- droid color start -->
        <div class="droid-color-box">
      <img src="https://i.imgur.com/lSb9Lum.png" draggable="false">
         
         
         
         <div class="color-box-text"> <hc> SHOP DROIDS</hc>
         <p> Shop our great selection of droids and droid related accessories. We have the top brands at the best prices. Check back often for new daily sales!</p>
         
             <div class="center-box">
    
       <div class="grid-container" id="grid">
         
        
  <div class="model-item active" id="model" onclick="model_click()">
    <div class="back-img"> 
  <img class="model-pic" src="https://i.imgur.com/pJlDD8U.png"  alt="IG" draggable="false"> </div>
    <div class= "p1">
       <p1> <b>IG Series </b></p1> 
      <br> <p2>$250,000</p2> <br> <a href=""> <p2>View Product</p2> </a>
          </div>
          </div>
          
    
     <div class="model-item" id="model2" onclick="model_click2()">
       <div class="back-img"> 
       <img class="model-pic" src="https://icons.iconarchive.com/icons/jonathan-rey/star-wars-characters/256/Battle-Droid-02-icon.png" alt="B1" draggable="false"> </div>
       <div class= "p1">
        <p1> <b>B1 Battle Droid </b></p1>
        <br> <p2>$3,800</p2> <br> <a href=""> <p2>View Product</p2> </a>
          </div>
          </div>
    
    <div class="model-item" id="model3" onclick="model_click3()"> 
     <div class="back-img"> 
       <img class="model-pic" src="https://i.imgur.com/FQa269V.png" alt="B2" draggable="false"> </div>
       <div class= "p1">
        <p1> <b>B2 Super Battle Droid </b></p1> 
         <br> <p2>$15,400</p2> <br> <a href=""> <p2>View Product</p2> </a>
          </div>
          </div>
    
    <div class="model-item" id="model4" onclick="model_click4()">
      <div class="back-img"> 
      <img class="model-pic" src="https://freepngimg.com/thumb/star_wars_battlefront/83263-droid-star-wars-machine-toy-battlefront-battle.png"  alt="R4" draggable="false"> </div>
    
   <div class= "p1">
      <p1> <b>R-Series Droid </b></p1>
     <br> <p2>$4,500</p2> <br> <a href=""> <p2>View Product</p2> </a>
          </div>
          </div>
    
<!--     Shop Row 2      -->
              
        
  <div class="model-item active" id="model-protocol" onclick="model_click()">
    <div class="back-img"> 
  <img class="model-pic" src="https://i.imgur.com/9mACtsf.png"   draggable="false"> </div>
    <div class= "p1">
       <p1> <b>Protocol Droid </b></p1>
      <br> <p2>$3,200</p2> <br> <a href=""> <p2>View Product</p2> </a>
          </div>
          </div>
          
    
     <div class="model-item" id="model-gnk" onclick="model_click2()">
       <div class="back-img"> 
       <img class="model-pic" id="gnk" src="https://i.imgur.com/vfpv9Zn.png" draggable="false"> </div>
       <div class= "p1">
        <p1> <b>GNK Droid </b></p1>
        <br> <p2>$200</p2> <br> <a href=""> <p2>View Product</p2> </a>
          </div>
          </div>
    
    <div class="model-item" id="model-recon" onclick="model_click3()"> 
     <div class="back-img"> 
       <img class="model-pic" id="recon" src="https://i.imgur.com/k1xokA0.png" alt="B2" draggable="false"> </div>
       <div class= "p1">
        <p1> <b>Recon Droid </b></p1> 
         <br> <p2>$12,500</p2> <br> <a href=""> <p2>View Product</p2> </a>
          </div>
          </div>
    
    <div class="model-item" id="model-magnaguard" onclick="model_click4()">
      <div class="back-img"> 
      <img class="model-pic" src="https://i.redd.it/douwn36cvfe51.png"  alt="R4" draggable="false"> </div>
    
   <div class= "p1">
      <p1> <b>IG-100 Series </b></p1>
     <br> <p2>$90,000</p2> <br> <a href=""> <p2>View Product</p2> </a>
          </div>
          </div>
         
         
         
         <!--     Shop Row 3      -->
              
        
  <div class="model-item active" id="model-droideka" onclick="model_click()">
    <div class="back-img"> 
  <img class="model-pic" src="https://qph.fs.quoracdn.net/main-qimg-9e52b4dce6424a132b4ecb1450426018"   draggable="false"> </div>
    <div class= "p1">
       <p1> <b>Droideka </b></p1>
      <br> <p2>$83,200</p2> <br> <a href=""> <p2>View Product</p2> </a>
          </div>
          </div>
          
    
     <div class="model-item" id="model-commando" onclick="model_click2()">
       <div class="back-img"> 
       <img class="model-pic" id="gnk" src="https://i.pinimg.com/originals/02/4f/73/024f7332afb0edfd53cc5530659bfa27.png" draggable="false"> </div>
       <div class= "p1">
        <p1> <b>Commando Droid </b></p1>
        <br> <p2>$86,200</p2> <br> <a href=""> <p2>View Product</p2> </a>
          </div>
          </div>
    
    <div class="model-item" id="model-lom" onclick="model_click3()"> 
     <div class="back-img"> 
       <img class="model-pic"  src="https://i.imgur.com/ZDciNgh.png" draggable="false"> </div>
       <div class= "p1">
        <p1> <b>LOM-Series </b></p1> 
         <br> <p2>$4,000</p2> <br> <a href=""> <p2>View Product</p2> </a>
          </div>
          </div>
    
    <div class="model-item" id="model-medical" onclick="model_click4()">
      <div class="back-img"> 
      <img class="model-pic" src="https://i.imgur.com/vHcbkBK.png" draggable="false"> </div>
    
   <div class= "p1">
      <p1> <b>Medical Droid </b></p1>
     <br> <p2>$5,000</p2> <br> <a href=""> <p2>View Product</p2> </a>
          </div>
          </div>
         
         
         </div>
      </div>
           <div class="page-number">
<button id="page"> ← Previous </button> 1 <button id="page"> Next → </button>
          </div></div>
 
      
           
           
<!--    Droid color end    -->
    
           </div>

  
       
       
       <br>

<br>
<br>
<!-- <img class="footer-img" src="https://freepngimg.com/thumb/star_wars_battlefront/83263-droid-star-wars-machine-toy-battlefront-battle.png"> </div> -->
<!--          <footer-wrapper>
           
           <ul>
              <li>  Terms of Use </li> 
              <li> Additional Content Information </li> 
              <li> Privacy Policy </li> 
              <li> Your California Privacy Rights </li> 
              <li> Star Wars at shopDisney </li> 
              <li>  Star Wars Helpdesk </li> 
              <li> Interest-Based Ads </li>
              <li> Do Not Sell My Personal Information </li>
           </ul>
           
           <br> -->
 <footer>
     This website is built by Kris Kosta © 2022 &nbsp; <a href= "https://codepen.io/kjkosta">https://codepen.io/kjkosta </a>
     
       </footer>  
<!-- </footer-wrapper> -->
      </section>
  
  

  
  
</body>

</html>
              
            
!

CSS

              
                iframe {
  
    display: block;
    position: center;
    width: 100%;
    height: 100%;
    padding: 2px;
    padding-left: 1px;
    padding-right: 1px;
  
}

.sketchfab-embed-wrapper {
    position: relative;
    top: 0;
    left: 0;
    position: center;
    width: 100%;
    height: 100%;
    padding: 1px;
    padding-left: 1px;
    padding-right: 1px;
}

/* iframe-crop{display: block; width: 100vw; height:70vw; overflow:hidden;} */

html {
  font-family: sans-serif;
}

* {
  box-sizing: border-box;
  
}

body {
padding: 0px;
background: black;
}

.particles{
  position: absolute;
  height:100%;

}


/*--- Scroll Bar ---  */

/* width */
::-webkit-scrollbar {
width: 18px;
}
/* Track */
::-webkit-scrollbar-track {
background: black;
background: radial-gradient(black, black, black, #33b5e5);
 
  border-radius: 0px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}
/* Handle */
::-webkit-scrollbar-thumb {
border-radius: 10px;
  background: radial-gradient(#aaaa, black);
}


/*--- Elements in Main ---  */

h2 {
    text-shadow: rgba(0,0,0,0.5) -1px 0, rgba(0,0,0,0.3) 0 -1px, rgba(255,255,255,0.5) 0 1px, rgba(0,0,0,0.3) -1px -2px;
  color: white;
  text-align: center;
  font-size: 4vw;
  line-height: 0;
  padding: 40px;
  width: 100%;
  background:radial-gradient(grey, #131313);
  border-radius: 50px;
  border: solid black;
  box-shadow: 10px 12px 8px rgba(0,0,0,.5);
  z-index: 2;
  margin-bottom: -10px;
  opacity: 100%;
  font-family: 'ROBOTECHGPRegular';
 // transition: all 2s;
  
}

h2:hover{
  cursor: pointer;
}


p {
text-align: center;
}



section{
   width: auto;
  postion: center;
  margin: 0px;
  margin-top: 20px;
  margin-left: -2;
  margin-right: -2;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
   font-size: auto;
  padding: 20px;
 // background: radial-gradient(#525252, #131313);
  //background: black;
  height: 2000px;


}

.center-box{
/*  SHOP DROIDS GRID  */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin-top: 0px;
  margin-bottom: 100px;

}

img{
   width: 100%;
  height: 200px;
  object-fit: contain;
  
   object-position: center;
   background-size: cover;
   object-size: 150%;
}


/*--- Footer Elements---  */



footer, footer-wrapper{
background: black;
  color: white;
  padding: 10px;
  width: 5%;
   margin: auto;
  width: 40vw;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 250px;
}



footer-wrapper{ width: 100vw;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
color: white;  margin-left: -50px; margin-bottom: -80px;
/*   background-image:url("https://i.pinimg.com/originals/43/f1/96/43f196f94fd37e2610e496e38f08de7c.png");
background-size: fill; filter: opacity(30%); */
}

footer-wrapper > ul > li{}

footer-wrapper > ul{
  height: 60px;
  flex: 100%;
  display: flex;
  padding-left: 25%;
  padding-right: 25%;
  margin-top: 0px;
  color: white;
  z-index: 1;

  padding: 0;
  list-style-type: none;
  flex: 1;
  display: flex;
  font-weight: bold;
  font-size: 10px;
}

footer-wrapper > ul > li{
  display: inline;
  text-align: center;
  flex: 1;
  width: cover;
  display: block;
  height: 3rem;
  line-height: 1.7;
  text-transform: uppercase;
  text-decoration: none;
  color: #aaa;
}

footer-wrapper > ul > li:hover{cursor: pointer; color: white;}



article3 > p{background:#33b5e5;
  background:orange;
  padding: 10px;
  padding-top: 20px;
  line-height: 160%;
  border-radius: 40px;
 background: linear-gradient(0deg, #FCCB3C, gold);
} 

article3 > b{background:white;
  border: solid white;
  padding: 10px;
  border-radius: 40px;
  margin-bottom: -35px;
  z-index: 2}


.p1 
{
/*   Product title */
  font-size: 100%;
  padding: 0px;
   margin-top: 40px; 
   line-height: 60%;
  text-align: center;
  
/*   line-height: 40%;
  font-size: 180%;
  font-family: 'ROBOTECHGPRegular'; */
}

p1 
{
/*   Product details */
  font-size: 50%;
  padding: 0px;
   margin: 0px; 
   line-height: 0%;
  border-radius: 40px;
  color: black;
  padding: 4px;
}

p1 > ul
{
  padding: 0;
  list-style-type: none;
}

p2{
/*  product price and view product  */
  font-size: 15px;
  line-height: 1px;
}

a{text-decoration: none;}
a:visited{color:black;}
a:hover{text-decoration: underline;}
li > a:hover{text-decoration: none;}
footer > a:visited{color: purple;}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 6fr);
  grid-gap: 2%;
  
}

.model-item {

  border: black;
  text-align: left;
  background-color: white;
  background-image: linear-gradient(black, white, white, white);
  padding: 0px;
  padding-top: 0px;
  padding-bottom: 25px;
  font-size: 30px;
  border: solid black;
  margin: 0%;
   margin-bottom: 10px;
  border-radius: 10px;
/*  background: radial-gradient(white, #131313); */
  display: block;
   z-index: 2;
  overflow: hidden;
}


.grid-container > div:hover {

  
 filter: drop-shadow(0.4vh 0.4vh 4.4vh rgba(4, 4, 4, 0.8));
 cursor: pointer;
  
}


.back-img{
height: 150px;
width: 170px;
z-index: 0;
margin-left: 0px;  
margin-top: -5px;
 transition: all 0.2s;
 z-index: 1;
  
}

/* model-item backgrounds */

#model > .back-img{background-image: url("https://ak.picdn.net/shutterstock/videos/1010227559/thumb/11.jpg");
background-size: cover;}

#model2 > .back-img{background-image: url("https://i.ytimg.com/vi/enrUBmDgeOQ/mqdefault.jpg");}

#model3 > .back-img{background-image: url("https://slidetodoc.com/presentation_image_h2/3de926b3445c7d2edecf32a757d8aac5/image-6.jpg");
  background-size: cover;
}

#model3 > .p1{margin-bottom: 10px; margin-top: 30px;}

#model3 > .back-img > .model-pic{
/*  B2 fade bottom  */
  -webkit-mask-image: linear-gradient(black, black, black , black , black, black, black, transparent);
height: 120%;
margin-top: 5px;
}

#model4 > .back-img{background-image: url("https://i.pinimg.com/originals/09/bd/a2/09bda2ce1ef4d962fa715b4b0403011c.jpg");
background-size: cover;}

#model4 > .back-img > .model-pic{
width: 350%;
  margin-left: -212px;
//margin-top: -190px;
}

/* shop row 2 */


#model-protocol > .back-img{background-image: url("http://www.geocities.ws/ksw_gd/Theedpalace03.jpg");
background-size: cover;}

#gnk, #recon{ 
height: 100%;
margin-top: 30px;
}
#model-gnk > .back-img{background-image: url("https://i.pinimg.com/originals/15/0e/2b/150e2b3c2950c26a8a08354a674af872.jpg");
background-size: cover;}

#model-recon > .back-img{background-image: url("https://t4.ftcdn.net/jpg/01/93/58/87/360_F_193588751_Hm9O9YOrk8e6P3KtaexHYd0f9jrHessm.jpg"); 
  
/*  https://earthsky.org/upl/2017/08/west-antarctic-ice-sheet-e1503662884251.jpg  */
background-size: cover;}


#model-magnaguard > .back-img{background-image: url("https://starwarsblog.starwars.com/wp-content/uploads/2015/01/Tatooine.jpeg");
background-size: cover;}

/* Shop Row 3 */

#model-droideka > .back-img{background-image: url("https://mixkit.imgix.net/videos/preview/mixkit-corridor-of-a-futuristic-spaceship-3d-loop-video-26807-0.jpg?q=80&auto=format%2Ccompress&w=460");
background-size: cover;}

#model-commando > .back-img{background-image: url("https://live.staticflickr.com/4057/4508750516_c2321c354b_b.jpg");
background-size: cover;}

#model-commando > .back-img > .model-pic{ height: 120%; margin-top: 10px;}

#model-lom > .back-img{background-image: url("https://mir-s3-cdn-cf.behance.net/projects/404/482b8832815497.Y3JvcCwxODE0LDE0MTksMTE5LDA.jpg");
background-size: cover;}

 #model-lom > .back-img > .model-pic{ height: 120%; margin-top: 10px;} 


#model-medical > .back-img{background-image: url("https://mixkit.imgix.net/videos/preview/mixkit-corridor-of-a-futuristic-spaceship-3d-loop-video-26807-0.jpg?q=80&auto=format%2Ccompress&w=460");
background-size: cover;}

 #model-medical > .back-img > .model-pic{ height: 120%; margin-top: 10px;} 


/*--- Button ---  */

button:hover{
 cursor: pointer;
  background: #f5f5f5;
}

button {
  background: white;
  padding: 12px;
  padding-top: 5px;
  padding-bottom: 5px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  border: solid black;
  margin-bottom: 15px;
    transition: all 0.2s;
  border: 1px solid black;
}


/*---Screen Responsiveness---  */

@media (max-width: 1500px) {
section {
  padding: 230px;
  padding-top: 10px;
  }}

@media (max-width: 1425) {
section{
  padding: 30px;
  }}

@media (max-width: 1400px) {
section {
  padding: 20px;
  }
/* width */
::-webkit-scrollbar {
width: 0px;
}
/* Track */
::-webkit-scrollbar-track {
background: black;
 
  border-radius: 0px;
  box-shadow: none;
}

/* Handle */
::-webkit-scrollbar-thumb {
border-radius: 0px;
background: black;
}

  }
  
}


@media (max-width: 910px) {
section {
  padding: 30px;
  
  }}
  
/* DROID COLOR DIVS */




.droid-color-box
{
/*  border for top seller droids  */
  margin: 10px, auto;
  padding-top: 40px;
  padding: 0px;
  postion: center;
  border-radius: 80px;
  background-image: url("https://i.pinimg.com/originals/3e/51/52/3e51529f91a760d52702fb5995a608e1.png");
  background-size: cover;
  background-position: center;
  width: 1000px;
  height: 400px;
  display: flex;
  z-index: 0;
  font-size: 25px;
  margin-top: 60px;
  margin-bottom:750px;
  display: flex;
  flex-wrap: wrap;
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
  border: 2px solid white;
  margin-left: auto;
  margin-right: auto;
}

.droid-color-box > img{ width: auto; margin-top: -150px;
margin-top: -100px;
height: 640px; 
}


hc{font-size: 30px; 
  padding: 30px; font-weight: bold;
  background: black;
  color: white;
  display: block;
  margin: -30px;
  margin-bottom: -15px;
  margin-top: -12px;
  z-index: 3;
  padding-top: 0px;
  padding-bottom: 6px;
  font-size: 50px;
  font-family: 'ROBOTECHGPRegular';}
 

.color-box-text{
  font-family: sans-serif;
  padding: 10px;
  text-align: center;

  
  width: auto;
  font-size: 80%;
  margin-top: -142px;
  border-radius: 0px;
  background: white;
  color: black;
  border: 2px solid white;
  outline: 2px solid white;
  z-index: 3;
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
  height: auto;
  //margin-bottom: 400px;
}


  
  
  
@media (max-width: 1036px){

.droid-color-box{

    display: flex;
    flex-wrap: wrap;
    width: 95vw;
  }
  
  .color-box-text, .grid-container{
     display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  hc{width: 170%;}
  
 

@media (max-width: 525px){
  
  .droid-color-box{width: auto;}
  .droid-color-box > img{ height: 500px;}
  .color-box-text, .grid-container, section{padding: 0px;}}

  @media (max-width: 410px){
    
  .grid-container{padding: 0px;}
  .model-pic{margin-left: -10px;}
    
  .model-item {
  padding: 0px;
  padding-top: 0px;
  padding-bottom: 25px;
  font-size: 25px;
  margin: 0%;
   margin-bottom: 10px;
  max-width: 150px;
  max-height: 250px;
    }}}
  

  
/* NEW ADD ONS */
  
  
h1 > img:hover{
  cursor: pointer;
  }

#img-h1{display: flex; justify-content: center; margin-bottom: -10px;}

#header-img{
  height: auto;
  width: 140px;
}

.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: #aaa;
}



.nav li:hover, .nav span:hover, .nav a:hover {
   color: white;
}
  
  
  
  /* screen sizes */


@media (max-width: 1083px){

  .nav{padding: 0px;}
  .nav span:hover, .nav a:hover, .nav li:hover {
  background: transparent;}}
  
  
  @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;}}
  
              
            
!

JS

              
                
              
            
!
999px

Console