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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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.container
  div.table-leg
  div.table-leg.right
  div.table-surface
  div.system
  div.chair
    div.chair-arm
    div.chair-seat
    div.chair-back
              
            
!

CSS

              
                :root {
  --balck:  rgb(0,0,0);
  --grey:  #1d232a;
  --bg: rgb(
252, 146, 73
);
  --sys: rgba(89, 85, 80);
  --table: rgb(110, 74, 45);
  --white: rgb(176, 176, 176);
  --board: rgb(115, 110, 110);
  --chair: rgb(132, 148, 181);
}

body{
  background-color: var(--bg);
}

.container {
  position: absolute;
  margin: auto;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 350px;
  height: 300px;
}


.table-leg {
  position: absolute;
  bottom: 0px;
  left: 15px;
  width: 10px;
  height: 150px;
  background: var(--table);
}


.right {
  left: 180px;
}


.table-surface {
  position: absolute;
  top: 140px;
  left: 15px;
  width: 185px;
  height: 25px;
  border-radius: 10px 10px 50px 10px;
  background: var(--table);
}

.system {
  position: absolute;
  width: 160px;
  height: 140px;
  left: 35px;
  top: 6px;
  background-repeat: no-repeat;
  background-image: linear-gradient(to right, var(--sys), var(--sys)),
                                  linear-gradient(#363636, #363636),
                                  linear-gradient(100deg, var(--bg) 20%, #2e2c2a 20% 60%, var(--bg) 60%);
  background-size: 10px 100px, 5px 100px, 20px 30px;
  background-position: 20px 50%, 30px 50%, 5% 95% ;
}
  .system:before {
    content: '';
    position: absolute;
    left: 45%;
    top: 75px;
    width: 90px;
    height: 60px;
    background-repeat: no-repeat;
    background-image: linear-gradient(to right, var(--board), var(--board)),
                                    linear-gradient(to right, var(--white), var(--white)),
                                    linear-gradient(to right, var(--white), var(--white)),
                                    linear-gradient(to right, var(--white), var(--white)),
                                    linear-gradient(to right, var(--white), var(--white)),
                                    linear-gradient(to right, var(--white), var(--white));
    background-size: 45px 6px, 7px 7px, 7px 7px, 7px 7px, 7px 7px, 7px 7px;
    background-position: 0px 100%, 2px 95%, 11px 95%, 19px 95%, 27px 95%, 34px 95%;
}

.system:after {
  content : '';
  position: absolute;
  height: 100px;
  width: 33px;
  left: 35px;
  top: 20px;
  background-repeat: no-repeat;
  background: linear-gradient(to right, white, transparent 30%);
/*   transform:skew(0deg) scaleX(.8666); */
}

.chair {
  position: absolute;
  width: 150px;
  height: 100%;
  left: 190px;
  background-repeat: no-repeat;
  background-image: radial-gradient(ellipse,  #1e1f1f 65%, transparent 60%),
                                  linear-gradient(to right, #2d2e2e, #2d2e2e);
  background-size: 109px 50px, 15px 70px;
  background-position: 21px 113%, 52% 95%;
}

.chair-seat {
  position: absolute;
  width: 115px;
  height: 20px;
  top: 205px;
  left: 13px;
  background: #1e1f1f ;
  border-radius: 15px 5px 5px 5px;
}

.chair-back {
  position: absolute;
  width: 17px;
  height: 120px;
  top: 65px;
  left: 122px;
  background: #1e1f1f ;
  border-radius: 15px 5px 15px 5px;
}

.chair-hold {
  
}

.chair-arm {
  position: absolute;
  width: 60px;
  height: 10px;
  bottom: 130px;
  left: 55px;
  background: #2d2e2e;
  border-radius: 15px 5px 5px 5px;
}

.chair-arm:before {
  position: absolute;
  content : '';
  width: 10px;
  height: 40px;
  left: -5px;
  background: #2d2e2e;
  transform: rotate(-170deg);
  border-radius: 5px 5px 15px 5px;
}
              
            
!

JS

              
                
              
            
!
999px

Console