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
 .container
        h2 Work Space Illustration <b class="html">HTML</b> and <b class="css">CSS</b>
        .deskLine
            .boxContainer
                .boxLine
                .boxCover
                .box1
                    .handle
            .boxContainer
                .box1
                    .handle
            .midHold
                .lines
            .rightStand
            //TOP LAYER 
            .topDesk
                .lampBaseCircle
                    .lampBase
                .lambMidCircle
                    .ropeBottom
                    .ropeTop
                    .topLine
                        .lambSmallHead
                        .lambHead
                            .lambHeadCircle
                        .bulb
                        .lambHeadLine
                    .bottomLine
                .cup
                    .cupHandle
                .pcBase
                    .baseFixer
                        .fixerBase
                        .leftTurn
                        .rightTurn
                    .pcHead
                        .top
                            .screenMove
                        .bottom
                            .powerButton
                .mouse
              
            
!

CSS

              
                body {
	overflow: hidden;
}
*, *:after, *:before {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
            box-sizing: border-box; }
  .container {
    width: 800px;
    height: 572px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    -webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
            box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2); }
  
  h2 {
    position: relative;
    margin: -1px auto 0px auto;
    padding: 20px 20px;
    text-align: center;
    width: 350px;
    font-size: 30px;
    color: #51566b;
    font-weight: lighter;
    line-height: 1.3;
    -webkit-box-shadow: 0px 3px 2px #ddd;
            box-shadow: 0px 3px 2px #ddd; }
    h2 b.html {
      color: tomato; }
    h2 b.css {
      color: #51566b; }
  
  .deskLine {
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
            transform: translateX(-50%);
    bottom: 40px;
    height: 5px;
    width: 666px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px; }
    .deskLine:before, .deskLine:after {
      position: absolute;
      content: "";
      top: 0;
      height: 100%;
      border-radius: 50%;
      background: inherit; 
    .deskLine:before {
      left: -28px;
      width: 19px;
      border-radius: inherit; }
    .deskLine:after {
      right: -12px;
      width: 5px; }
  
  .boxContainer {
    left: 47px;
    position: absolute;
    width: 167px;
    height: 90px;
    background: #ebb885;
    border: 5px solid #2e334b;
    overflow: hidden; }
    .boxContainer:nth-child(1) {
      bottom: 0;
      background: #f2d1b0; }
    .boxContainer:nth-child(2) {
      bottom: 84px; }
      .boxContainer:nth-child(2):after {
        position: absolute;
        content: " ";
        top: 0px;
        height: 7px;
        width: 100%;
        background: #b58f68;
        z-index: 99999; }
    .boxContainer .box1 {
      position: absolute;
      top: 50%;
      left: 50%;
      -webkit-transform: translate(-50%, -50%);
          -ms-transform: translate(-50%, -50%);
              transform: translate(-50%, -50%);
      width: 125px;
      height: 56px;
      border: inherit;
      background: #f2d1b0;
      border-radius: 3px;
      overflow: hidden; }
      .boxContainer .box1:after {
        position: absolute;
        content: " ";
        top: 4px;
        height: 38px;
        width: 100%;
        background: #ebb885;
        z-index: 8;
        border-radius: 4px;
        -webkit-transform: skew(-15deg);
            -ms-transform: skew(-15deg);
                transform: skew(-15deg);
        border-bottom-right-radius: 60%;
        border-bottom-left-radius: 20%; }
      .boxContainer .box1:before {
        position: absolute;
        content: " ";
        top: 20px;
        height: 30px;
        width: 150%;
        background: #d5a779;
        z-index: 7;
        border-bottom-right-radius: 80%;
        border-bottom-left-radius: 20%; }
    .boxContainer .boxCover {
      position: absolute;
      top: 5px;
      left: 2px;
      height: 77px;
      width: 160px;
      background: #d5a779;
      border-top-left-radius: 10px;
      border-bottom-left-radius: 20px;
      overflow: hidden; }
      .boxContainer .boxCover:after {
        position: absolute;
        content: " ";
        right: -5px;
        bottom: 4px;
        height: 400%;
        width: 400%;
        border-bottom-left-radius: 20%;
        border-bottom-right-radius: 20%;
        background: #ebb885; }
    .boxContainer .boxLine {
      position: absolute;
      top: -4px;
      right: 6px;
      width: 3.5px;
      height: 22px;
      background: #2e334b;
      border-radius: 2.5px;
      z-index: 999; }
    .boxContainer .handle {
      position: absolute;
      top: 50%;
      left: 50%;
      -webkit-transform: translate(-50%, -50%);
          -ms-transform: translate(-50%, -50%);
              transform: translate(-50%, -50%);
      height: 10px;
      width: 40px;
      background: #2e334b;
      border-radius: 8px;
      z-index: 99; }
  
  .midHold {
    position: absolute;
    left: 209px;
    bottom: 130px;
    height: 44px;
    width: 389px;
    border: 5px solid #2e334b;
    background: #8b6e52;
    overflow: hidden; }
    .midHold .lines {
      position: absolute;
      height: 4px;
      width: 58px;
      background: #2e334b;
      left: 45px;
      -webkit-transform: rotate(-50deg);
          -ms-transform: rotate(-50deg);
              transform: rotate(-50deg);
      border-radius: 3px; }
      .midHold .lines:before, .midHold .lines:after {
        position: absolute;
        content: " ";
        background: #2e334b;
        border-radius: inherit; }
      .midHold .lines:before {
        top: 10px;
        left: 23px;
        height: 4px;
        width: 38px; }
      .midHold .lines:after {
        height: 4px;
        width: 30px;
        top: 180px;
        left: 118px; }
    .midHold:before, .midHold:after {
      position: absolute;
      content: " "; }
    .midHold:before {
      top: 7px;
      height: 60px;
      width: 265px;
      background: #a07e5d;
      border-top-right-radius: 80px; }
    .midHold:after {
      top: 29px;
      left: 8px;
      height: 20px;
      width: 240px;
      border-radius: 18px;
      background: #ae9175; }
  
  .rightStand {
    position: absolute;
    width: 25px;
    border: 5px solid #2e334b;
    height: 174px;
    bottom: 0;
    right: 48px;
    z-index: 99;
    background: #d5a779;
    overflow: hidden; }
    .rightStand:after {
      position: absolute;
      content: " ";
      height: 126px;
      width: 150%;
      background: #ebb885;
      border-bottom-right-radius: 80%;
      border-top: 7px solid #b58f68; }
  
  .topDesk {
    position: absolute;
    left: 50%;
    bottom: 169px;
    -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
            transform: translateX(-50%);
    width: 635px;
    height: 25px;
    background: #f2d1b0;
    border: 5px solid #2e334b;
    border-radius: 12px; }
    .topDesk:before {
      position: absolute;
      content: " ";
      bottom: 0;
      right: 0px;
      width: 625px;
      height: 11px;
      background: #ebb885;
      border-top-right-radius: 3px;
      border-top-left-radius: 8px;
      border-bottom-right-radius: 8px;
      border-bottom-left-radius: 8px; }
  
  .lampBaseCircle {
    left: 64px;
    top: -35px;
    position: absolute;
    height: 30px;
    width: 30px;
    background: #00d2ff;
    border: 5px solid #2e334b;
    border-radius: 50%; }
    .lampBaseCircle:after {
      position: absolute;
      content: " ";
      left: 3px;
      top: 1px;
      height: 8px;
      width: 8px;
      border-radius: 50%;
      background: #80e9ff; }
    .lampBaseCircle .lampBase {
      position: absolute;
      top: 10px;
      left: 50%;
      -webkit-transform: translateX(-50%);
          -ms-transform: translateX(-50%);
              transform: translateX(-50%);
      width: 78px;
      height: 20px;
      background: #00d2ff;
      border: 5px solid #2e334b;
      border-top-left-radius: 15px;
      border-top-right-radius: 15px;
      overflow: hidden; }
      .lampBaseCircle .lampBase:after {
        position: absolute;
        content: " ";
        width: 85%;
        height: 3px;
        background: #80e9ff;
        border-radius: 6px; }
  
  .lambMidCircle {
    position: absolute;
    top: -100px;
    left: 14px;
    height: 30px;
    width: 30px;
    border: 5px solid #2e334b;
    background: #bdf4e4;
    border-radius: 50%; }
    .lambMidCircle:after {
      position: absolute;
      content: " ";
      top: 50%;
      left: 50%;
      height: 7px;
      width: 7px;
      border-radius: 50%;
      -webkit-transform: translate(-50%, -50%);
          -ms-transform: translate(-50%, -50%);
              transform: translate(-50%, -50%);
      background: #92adb0; }
    .lambMidCircle .ropeTop {
      top: -56px;
      left: 10px;
      position: absolute;
      height: 51px;
      width: 60px;
      border: 3px solid #2e334b;
      border-bottom: none;
      border-top-right-radius: 60px;
      border-top-left-radius: 90px; }
    .lambMidCircle .ropeBottom {
      position: absolute;
      top: 20px;
      height: 23px;
      width: 30px;
      border-left: 3px solid #2e334b;
      border-bottom: 3px solid #2e334b;
      border-top-left-radius: 10px;
      border-bottom-left-radius: 60px; }
      .lambMidCircle .ropeBottom:after {
        position: absolute;
        content: " ";
        left: 100%;
        height: 100%;
        width: 113%;
        top: 20px;
        border: 3px solid #2e334b;
        border-left: none;
        border-bottom: none;
        border-top-right-radius: 30px;
        border-bottom-right-radius: 0px; }
    .lambMidCircle .topLine, .lambMidCircle .bottomLine {
      position: absolute;
      height: 60px;
      width: 5px;
      background: #2e334b; }
    .lambMidCircle .bottomLine {
      left: 30px;
      top: 13px;
      -webkit-transform: rotate(-45deg);
          -ms-transform: rotate(-45deg);
              transform: rotate(-45deg); }
    .lambMidCircle .topLine {
      position: absolute;
      bottom: 13px;
      left: 30px;
      -webkit-transform: rotate(45deg);
          -ms-transform: rotate(45deg);
              transform: rotate(45deg); }
      .lambMidCircle .topLine .lambSmallHead {
        position: absolute;
        top: -18px;
        left: -10px;
        height: 27px;
        width: 27px;
        border-radius: 50%;
        border: 5px solid #2e334b;
        background: #59e2ff;
        z-index: 9; }
      .lambMidCircle .topLine .lambHeadLine {
        left: 0;
        top: -17px;
        position: absolute;
        height: 25px;
        border-radius: 10px;
        width: 5px;
        background: #2e334b;
        z-index: 99999; }
      .lambMidCircle .topLine .lambHead {
        position: absolute;
        top: -30px;
        left: -1.5px;
        height: 50px;
        width: 50px;
        border: 5px solid #2e334b;
        border-bottom-right-radius: 3px;
        border-top-right-radius: 3px;
        border-top-left-radius: 50%;
        border-bottom-left-radius: 50%;
        z-index: 99;
        background: #00d2ff;
        overflow: hidden; }
        .lambMidCircle .topLine .lambHead:after {
          position: absolute;
          content: ' ';
          top: -7px;
          left: -5px;
          height: 30px;
          width: 30px;
          border-radius: 50%;
          background: #59e2ff; }
        .lambMidCircle .topLine .lambHead:before {
          position: absolute;
          content: " ";
          top: 20px;
          left: 1px;
          height: 15px;
          width: 5px;
          background: #59e2ff;
          z-index: 9999; }
        .lambMidCircle .topLine .lambHead .lambHeadCircle {
          position: absolute;
          top: 7px;
          left: 3px;
          height: 8px;
          width: 15px;
          background: #80e9ff;
          border-radius: 50%;
          z-index: 99;
          -webkit-transform: rotate(-25deg);
              -ms-transform: rotate(-25deg);
                  transform: rotate(-25deg); }
          .lambMidCircle .topLine .lambHead .lambHeadCircle:before, .lambMidCircle .topLine .lambHead .lambHeadCircle:after {
            position: absolute;
            content: " ";
            -webkit-transform: rotate(25deg);
                -ms-transform: rotate(25deg);
                    transform: rotate(25deg);
            background: #2e334b;
            border-radius: 5px; }
          .lambMidCircle .topLine .lambHead .lambHeadCircle:before {
            height: 20px;
            width: 4px;
            top: 25px;
            left: 15px; }
          .lambMidCircle .topLine .lambHead .lambHeadCircle:after {
            height: 4px;
            width: 4px;
            top: 20px;
            left: 21px; }
      .lambMidCircle .topLine .bulb {
        position: absolute;
        top: -18px;
        width: 27px;
        left: 32px;
        height: 27px;
        background: #e0c787;
        border: 3px solid #2e334b;
        border-radius: 50%;
        z-index: 98; }
  
  .cup {
    position: absolute;
    height: 48px;
    width: 43px;
    left: 175px;
    top: -50px;
    border: 5px solid #2e334b;
    background: #ff7382;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px; }
    .cup:before, .cup:after {
      position: absolute;
      content: " "; }
    .cup:before {
      left: 5px;
      top: 0px;
      height: 19px;
      width: 11px;
      background: #ffa4ae;
      border-bottom-right-radius: 5px;
      border-bottom-left-radius: 5px; }
    .cup:after {
      width: 100%;
      height: 3px;
      background: #ffa4ae; }
    .cup .cupHandle {
      position: absolute;
      top: 3px;
      left: 33px;
      height: 28px;
      width: 18px;
      border: 5px solid #2e334b;
      border-top-right-radius: 17px;
      border-bottom-right-radius: 17px; }
  
  .pcBase {
    position: absolute;
    top: -15px;
    left: 300px;
    height: 15px;
    width: 95px;
    border: 5px solid #2e334b;
    border-bottom: none;
    background: #e1e1e1;
    border-top: 5px solid #2e334b;
    border-bottom: 5px solid #2e334b;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px; }
    .pcBase .baseFixer {
      position: absolute;
      top: -17px;
      left: 50%;
      -webkit-transform: translateX(-50%);
          -ms-transform: translateX(-50%);
              transform: translateX(-50%);
      height: 17px;
      width: 75px;
      background: #e1e1e1; }
      .pcBase .baseFixer:after, .pcBase .baseFixer:before {
        position: absolute;
        content: " ";
        height: 3px;
        bottom: 0px; }
      .pcBase .baseFixer:after {
        left: 5px;
        width: 22px;
        background: #2e334b;
        border-radius: 9px; }
      .pcBase .baseFixer:before {
        width: 8px;
        left: 32px;
        background: #2e334b;
        border-radius: 5px; }
      .pcBase .baseFixer .fixerBase {
        position: absolute;
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
            -ms-transform: translate(-50%, -50%);
                transform: translate(-50%, -50%);
        background: none;
        height: 10px;
        width: 10px; }
        .pcBase .baseFixer .fixerBase:after {
          top: -10px;
          position: absolute;
          left: -40px;
          content: " ";
          height: 20px;
          width: 23px;
          background: #fff;
          border-top-right-radius: 30%;
          border-bottom-right-radius: 40%;
          -webkit-transform: rotate(7deg);
              -ms-transform: rotate(7deg);
                  transform: rotate(7deg); }
        .pcBase .baseFixer .fixerBase:before {
          top: -10px;
          position: absolute;
          right: -40px;
          content: " ";
          height: 20px;
          width: 23px;
          background: #fff;
          border-top-left-radius: 30%;
          border-bottom-left-radius: 40%;
          -webkit-transform: rotate(-7deg);
              -ms-transform: rotate(-7deg);
                  transform: rotate(-7deg); }
      .pcBase .baseFixer .leftTurn, .pcBase .baseFixer .rightTurn {
        position: absolute;
        bottom: -1px;
        height: 40px;
        width: 40px;
        border: 5px solid #2e334b; }
      .pcBase .baseFixer .leftTurn {
        left: -20.5px;
        border-top-right-radius: 30%;
        border-bottom-right-radius: 40%;
        -webkit-transform: rotate(7deg);
            -ms-transform: rotate(7deg);
                transform: rotate(7deg); }
        .pcBase .baseFixer .leftTurn:before {
          position: absolute;
          height: 40px;
          width: 50px;
          content: "";
          top: -2.5px;
          left: -30px;
          -webkit-transform: rotate(-10deg);
              -ms-transform: rotate(-10deg);
                  transform: rotate(-10deg);
          background: #fff;
          border-top-right-radius: 30%;
          border-bottom-right-radius: 40%; }
      .pcBase .baseFixer .rightTurn {
        right: -20.5px;
        border-top-left-radius: 30%;
        border-bottom-left-radius: 40%;
        -webkit-transform: rotate(-7deg);
            -ms-transform: rotate(-7deg);
                transform: rotate(-7deg); }
        .pcBase .baseFixer .rightTurn:before {
          position: absolute;
          height: 40px;
          width: 50px;
          content: "";
          top: -2.5px;
          right: -30px;
          -webkit-transform: rotate(10deg);
              -ms-transform: rotate(10deg);
                  transform: rotate(10deg);
          background: #fff;
          border-top-left-radius: 30%;
          border-bottom-left-radius: 40%; }
    .pcBase .pcHead {
      position: absolute;
      width: 204px;
      height: 140px;
      border: 5px solid #2e334b;
      top: -160px;
      left: 50%;
      -webkit-transform: translateX(-50%);
          -ms-transform: translateX(-50%);
              transform: translateX(-50%);
      background: #e1e1e1;
      border-radius: 15px; }
      .pcBase .pcHead:after {
        position: absolute;
        left: 50%;
        content: " ";
        bottom: -10px;
        height: 6px;
        width: 36.5px;
        background: #adadad;
        -webkit-transform: translateX(-50%);
            -ms-transform: translateX(-50%);
                transform: translateX(-50%); }
      .pcBase .pcHead .top {
        position: absolute;
        overflow: hidden;
        top: 4px;
        left: 50%;
        -webkit-transform: translateX(-50%);
            -ms-transform: translateX(-50%);
                transform: translateX(-50%);
        background: #51566b;
        width: 187px;
        height: 94px;
        border-top-right-radius: 10px;
        border-top-left-radius: 10px;
        border: 3px solid #2e334b;
        overflow: hidden; }
        .pcBase .pcHead .top .screenMove {
          left: -150px;
          position: absolute;
          height: 500%;
          width: 30px;
          background: #6b6f81;
          -webkit-transform: rotate(45deg);
              -ms-transform: rotate(45deg);
                  transform: rotate(45deg);
          -webkit-transform-origin: top right;
              -ms-transform-origin: top right;
                  transform-origin: top right;
          -webkit-animation: screenMove 4s linear infinite;
                  animation: screenMove 4s linear infinite; }
          .pcBase .pcHead .top .screenMove:after {
            position: absolute;
            content: " ";
            left: 50px;
            -webkit-transform: translateY(-50%);
                -ms-transform: translateY(-50%);
                    transform: translateY(-50%);
            height: 500%;
            width: 200%;
            background: inherit; }
          .pcBase .pcHead .top .screenMove:before {
            position: absolute;
            content: " ";
            -webkit-transform: translateY(-50%);
                -ms-transform: translateY(-50%);
                    transform: translateY(-50%);
            height: 500%;
            width: 300%;
            left: -150px;
            background: inherit; }
      .pcBase .pcHead .bottom {
        position: absolute;
        bottom: -2px;
        height: 30px;
        width: 100%;
        border-top: 5px solid #2e334b; }
        .pcBase .pcHead .bottom .powerButton {
          position: absolute;
          top: 4px;
          left: 50%;
          -webkit-transform: translateX(-50%);
              -ms-transform: translateX(-50%);
                  transform: translateX(-50%);
          height: 14px;
          width: 14px;
          border-radius: 50%;
          border: 2px solid #2e334b; }
  
  .mouse {
    position: absolute;
    height: 17px;
    width: 38px;
    right: 116px;
    top: -17px;
    border: 5px solid #2e334b;
    background: #e7e7e7;
    border-bottom: 5px solid #2e334b;
    border-top-right-radius: 19px;
    border-top-left-radius: 19px;
    z-index: 1; }
  
  @-webkit-keyframes screenMove {
    0% {
      left: -150px; }
    100% {
      left: 500px; } }
  
  @keyframes screenMove {
    0% {
      left: -150px; }
    100% {
      left: 500px; } }
              
            
!

JS

              
                /*Inspiration*/
//https://dribbble.com/shots/3695625-Workspace
              
            
!
999px

Console