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

              
                <!-- Font -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Overpass" />

<!-- Image -->
<div class="container">
  <div class="outline"></div>
  <div class="shield"></div>
  <div class="inner-shield"></div>
  <div class="bar"></div>
  <div class="route">ROUTE</div>
  <div class="us-1">U</div>
  <div class="us-2">S</div>
  <div class="six-1">6</div>
  <div class="six-2">6</div>
</div>
              
            
!

CSS

              
                /* Outline */
.outline {
  background-color: #0a0a0a;
  width: 475px;
  height: 485px;
  top: 7px;
  left: 13px;
  clip-path: path(
    "M 238,4 Q 312,55 383,4 L 458,86 Q 397,160 454,276 Q 482,336 447,389 Q 413,441 317,448 Q 263,452 238.5,477.5 Q 202,452 165,448 Q 60,437 35,396 Q 0,336 25,276 Q 84,160 14,86 L 92,4 Q 162,55 238,4"
  );
}

/* Shield */
.shield {
  background: #ffffff;
  width: 475px;
  height: 485px;
  top: 7px;
  left: 13px;
  clip-path: path(
    "M 238,11 Q 312,58 383,11 L 451,86 Q 390,160 447,276 Q 475,336 440,389 Q 413,434 310,441 Q 263,445 238.5,471.5 Q 202,445 165,441 Q 55,428 38,389 Q 7,336 32,276 Q 91,160 21,86 L 92,11 Q 162,57 238,11"
  );
}

/* Inner Shield */
.inner-shield {
  background: #0e0e0e;
  width: 475px;
  height: 485px;
  top: 7px;
  left: 13px;
  clip-path: path(
    "M 238,25 Q 315,69 381,25 L 436,86 Q 378,183 435,276 Q 464,336 426,389 Q 402,427 310,433 Q 263,436 238.5,457.5 Q 202,436 165,430 Q 65,420 51,389 Q 18,336 44,276 Q 100,160 37,86 L 94,25 Q 162,69 238,25"
  );
}

/* Bar */
.bar {
  background: #ffffff;
  width: 343.5px;
  height: 13px;
  top: 154.5px;
  left: 80.5px;
  clip-path: polygon(0 0, 100% 0, 99.3% 100%, 0.5% 100%);
}

/* Route */
.route {
  width: 284px;
  height: 73px;
  top: 55px;
  left: 103px;
  font-size: 87px;
}

/* U.S. 1 */
.us-1 {
  width: 80px;
  height: 58px;
  top: 169px;
  left: 200px;
  font-size: 60px;
}

/* U.S. 2 */
.us-2 {
  width: 80px;
  height: 58px;
  top: 169px;
  left: 261px;
  font-size: 60px;
}

/* Six - 1 */
.six-1 {
  width: 150px;
  height: 192px;
  top: 186px;
  left: 93px;
  font-size: 255px;
}

/* Six - 2 */
.six-2 {
  width: 150px;
  height: 192px;
  top: 186px;
  left: 235px;
  font-size: 255px;
}

/* Shared Properties */
.outline,
.shield,
.inner-shield,
.bar,
.route,
.us-1,
.us-2,
.six-1,
.six-2 {
  position: absolute;
  font-family: "Overpass", serif;
  font-weight: 700;
  color: #ffffff;
}

/* Body and Container Settings */
/* Center shapes */
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Set background and border color */
.container {
  width: 500px;
  height: 500px;
  /*   border: 5px solid lightgray; */
  background: transparent;
  position: relative;
  margin: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

              
            
!

JS

              
                
              
            
!
999px

Console