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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

              
                <div>
  
</div>
              
            
!

CSS

              
                $t: transparent;
$bk: pink;

body{
  font-size: 10px;
  background: rgb(255,192,203);
background: $bk;
  font-family: 'Yeseva One', cursive;

}
div {
  width: 100em;
  height: 55em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  // border: 2px solid gold;
  background: 
//     shadow
    radial-gradient(
        98% 98% at 50% 50%,
      
        rgba(#333,.15),
        rgba($t,0) 52%
      )
      39% 85% / 15em 4em,         
// BUTTON    
    radial-gradient(
        98% 98% at 50% 50%,
      
        rgba(#333,1) 50%,
        rgba($t,0) 52%
      )
      54.5% 78.6% / 1.4em .3em,
    
    linear-gradient(
      to right,
     #d79d61 34%, #a35d21, #8e4e1d 
    )
     54.5% 79.5% / 1.2em .7em,    
// BLOCK    
    linear-gradient(
      to right,
    $bk, $bk
    )
     64% 14% / 2em 2em,     
    linear-gradient(
      to right,
    $bk 50%, rgba(#000,.2) 53%
    )
     61.5% 27.3% / 1em 4em,      
// BASE  
    
// SHADING       
    radial-gradient(
        98% 98% at 50% 50%,
      rgba(#B77334,.0) 40%,
        rgba(#93521E,.6) 50%,
        $t 52%
      )
      50% 81.5% / 17em 3em,     
    radial-gradient(
        98% 98% at 50% 50%,
      rgba(red,0) ,
        rgba(#333,.1) 50%,
        $t 52%
      )
      50% 81.5% / 17em 3em, 
// //     EDGE SHADING
    radial-gradient(
        98% 98% at 50% 50%,
      rgba(#fff,.1) 40%,
        rgba(#fff,.1) 50%,
        $t 52%
      )
      50% 82% / 17em 3em,    
    radial-gradient(
        98% 98% at 50% 50%,
      rgba(#B77334,.1) 40%,
        rgba(#fff,.1) 50%,
        $t 52%
      )
      50% 81.5% / 17em 3em, 
    radial-gradient(
        98% 98% at 50% 50%,
      rgba(#B77334,.0) 40%,
        rgba(#93521E,.5) 50%,
        $t 52%
      )
      50% 81.5% / 17em 3em,      
// SHADING  
    
    radial-gradient(
        98% 98% at 50% 50%,
      
        rgba(#B77334,1) 50%,
        rgba($t,0) 52%
      )
      50% 81.5% / 17em 3em,      
    radial-gradient(
        98% 98% at 50% 00%,
      $t 50%,
      $bk 52%,
      )
      50% 89% / 17.2em 4em,
    
    linear-gradient(
      to right,
     #D2904D 5%, #a35d21 30%, #a35d21, #D2904D, #8e4e1d 
    )
     50% 85.2% / 17em 3.5em,  
   
//   END BOTTOM BASE
    
   
// ON TOP OF BASE   
    linear-gradient(
      to right,
     #d79d61 34%, #a35d21 35%, #a35d21, #d79d61, #8e4e1d 
    )
     50% 15% / 1.4em 1.6em, 
// BOTTOM CURVE    
    radial-gradient(57% 50% at 0% 0%, rgba(red,0) 6.7em, rgba(#333,1) 6.9em, rgba(#5e5e60 ,1) 7.49em, rgba($bk,1) 7.55em) 
    60% 85% /9em 8em,        
// TOP BASE WIRE  

    radial-gradient(159% 132% at -1% 110%, rgba(red,.0) 40%, rgba($bk,1) 48%,rgba(#333,1) , rgba(#333,0) 53.5%, ) 60% 10.36% / 8.5em 9em,
    radial-gradient(159% 132% at -1% 110%, $t 48.4%, rgba(#333,1) 48%, rgba(#fff,.03) 53.5%, $bk 56%) 60% 10.36% / 8.5em 9em,     
    radial-gradient(159% 132% at -1% 110%, $t 48.4%, rgba(#333,1) 48%, rgba(#333,1) 53.5%, $bk 56%) 60% 10.36% / 8.5em 9em,     

    
    linear-gradient(
      to top,
    #383839, rgba(#fff,.9)
    )
     58.3% 15% / 15em .7em,     

    linear-gradient(
      to right,
    #383839, #383839 
    )
     58.3% 15% / 15em .7em,   
//     BACK WIRE HOLDER THING
    linear-gradient(
      to right,
    #333,#5e5e60 60%, rgba(#f2f2f2,.1) 
    )
     61.88% 50% / .8em 34em,  
        
    linear-gradient(
      to right,
    #333, #5e5e60 
    )
     61.88% 50% / .8em 34em,  
    
    
    
    
// bottom black line on top lamp piece 
    
//     LIGHT
    radial-gradient(
      98% 98% at 50% 0%,
      rgba(#000,1) 40%,
      $t 52%
    )
    50% 37.4% / 19.7em 1em, 
//     SHADING
    radial-gradient(
      98% 98% at 50% 100%,
      rgba(#333,.0) 50%,
      $bk 52%
    )
    50% 7.5% / 19.7em 13em,       

    
// //     SHADING    
   
 linear-gradient(
      to top,
    rgba(#1a1a1a,.6),rgba(#333,1) 65%
    )
     50% 18% / 19.5em 13em,       
 linear-gradient(
     92deg,
   rgba(#C0BFC4,.6), 
   rgba(#C0BFC4,.4), rgba(#C0BFC4,.3),rgba(#333,1) 25%, rgba(#333,1) 62%,rgba(#C0BFC4,.3) ,rgba(#C0BFC4,.7) , rgba(#C0BFC4,.1) 100%,  
    )
     50% 17.3% / 19.66em 13em,     
// END SHADING
// LIGHT   
    radial-gradient(
      98% 98% at 50% 0%,
      rgba(#fff,.9) 50%,
      $bk 52%
    )
    50% 38% / 19.7em 1em,     
 linear-gradient(
      to right,
    #333,#333, 
    )
     50% 28% / 19.67em 6.8em, 
      
    radial-gradient(
      98% 98% at 50% 50%,
      rgba(#333,1) 50%,
      $bk 50%
    )
    50% 17.6% / 20em 13em,      
// END TOP
    ;
  background-repeat: no-repeat;
  // &:before{
  //   content: "HTML & CSS";
  //   font-size: 2.5em;
  //   position: absolute;
  // }  
  // &:after{
  //   content: "Single Div Table Lamp";
  //   font-size: 3.4em;
  //   position: absolute;
  //   top: 7%;
  // }
}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (max-width: 600px) {
  body {
  font-size: 5px;
    div{
      top: 55%;
  //       &:before{
  //         top: -5%;
  //   content: "HTML & CSS";
  //   font-size: 2.5em;
  //   position: absolute;
  //         left: 15%;
  // }  
  // &:after{
  //   content: "Single Div Table Lamp";
  //   font-size: 3.4em;
  //   position: absolute;
  //   top: 0%;
  //   left: 15%;
  // }
    }
  };
}

              
            
!

JS

              
                
              
            
!
999px

Console