Pen Settings



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


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


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.


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.


                <div class="item">
  <svg viewBox="5 4 133 162" xmlns="">
    <g fill="transparent">
      <path d="m8.73808 24.737529c0.7873221-10.74522 7.961202-14.942426 17.973879-17.171972l80.648611-0.200447c-4.20643 3.7407645-9.497544 14.049518-4.40996 22.45051 9.26832 18.963672 30.68276 8.553942 31.60464 5.14491l-0.26727 111.71829c-0.90903 10.7577-8.27489 14.77279-14.633 16.83798l-97.28615-0.33409c-5.914242-1.73234-10.983738-5.01979-14.298925-15.30118z" stroke="#495795" stroke-width="1" />
      <circle cx="120" cy="22" r="15" stroke="#495795" stroke-width="1" fill="red" />
      <text x="108" y="25.5">-83%</text>

  <div class="banner">most popular</div>


                * {
  font-family: sans-serif;
  box-sizing: boder-box;

.item {
  max-width: 420px;
  margin: 30px auto;
  background: url(,
  background-size: 400px 400px;
  background-repeat: no-repeat;
  padding: 10px;
  background-position-y: -220px;
  position: relative;

text {
  fill: #fff;
  font-weight: 800;
  font-size: 9px;

.banner {
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6vw;
  font-weight: 800;
  width: 95%;
  text-transform: uppercase;
  background-color: #495795;
  padding: 10px 0;