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

              
                <a class="jw-link" target="_blank" href="https://www.justwatch.com/us/movie/forrest-gump">
  <div class="wrapper">
    <svg class="jw-logo" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
      <path d="M4 2.64835C4 2.35072 4.31345 2.15734 4.57945 2.29086L7.28502 3.64895C7.57961 3.79682 7.57895 4.21754 7.2839 4.36449L4.57832 5.71197C4.3124 5.84441 4 5.651 4 5.35392L4 2.64835Z" fill="#BEC1C5" />
      <path d="M4 10.6483C4 10.3507 4.31345 10.1573 4.57945 10.2909L7.28502 11.6489C7.57961 11.7968 7.57895 12.2175 7.2839 12.3645L4.57832 13.712C4.3124 13.8444 4 13.651 4 13.3539L4 10.6483Z" fill="#BEC1C5" />
      <path d="M4 6.64835C4 6.35072 4.31345 6.15734 4.57945 6.29086L7.28502 7.64895C7.57961 7.79682 7.57895 8.21754 7.2839 8.36449L4.57832 9.71197C4.3124 9.84441 4 9.651 4 9.35392L4 6.64835Z" fill="#BEC1C5" />
      <path d="M8 4.64835C8 4.35072 8.31345 4.15734 8.57945 4.29086L11.285 5.64895C11.5796 5.79682 11.5789 6.21754 11.2839 6.36449L8.57832 7.71197C8.3124 7.84441 8 7.651 8 7.35392L8 4.64835Z" fill="#BEC1C5" />
      <path d="M4.04638e-08 4.64835C2.18888e-08 4.35072 0.313449 4.15734 0.579446 4.29086L3.28502 5.64895C3.57961 5.79682 3.57895 6.21754 3.2839 6.36449L0.578324 7.71197C0.312401 7.84441 2.27861e-07 7.651 2.0932e-07 7.35392L4.04638e-08 4.64835Z" fill="#BEC1C5" />
      <path d="M4.04638e-08 0.648349C2.18888e-08 0.350722 0.313449 0.157339 0.579446 0.290859L3.28502 1.64895C3.57961 1.79682 3.57895 2.21754 3.2839 2.36449L0.578324 3.71197C0.312401 3.84441 2.27861e-07 3.651 2.0932e-07 3.35392L4.04638e-08 0.648349Z" fill="#BEC1C5" />
      <path d="M8 8.64835C8 8.35072 8.31345 8.15734 8.57945 8.29086L11.285 9.64895C11.5796 9.79682 11.5789 10.2175 11.2839 10.3645L8.57832 11.712C8.3124 11.8444 8 11.651 8 11.3539L8 8.64835Z" fill="#BEC1C5" />
      <path d="M4.04638e-08 8.64835C2.18888e-08 8.35072 0.313449 8.15734 0.579446 8.29086L3.28502 9.64895C3.57961 9.79682 3.57895 10.2175 3.2839 10.3645L0.578324 11.712C0.312401 11.8444 2.27861e-07 11.651 2.0932e-07 11.3539L4.04638e-08 8.64835Z" fill="#BEC1C5" />
      <path d="M4.04638e-08 12.6483C2.18888e-08 12.3507 0.313449 12.1573 0.579446 12.2909L3.28502 13.6489C3.57961 13.7968 3.57895 14.2175 3.2839 14.3645L0.578324 15.712C0.312401 15.8444 2.27861e-07 15.651 2.0932e-07 15.3539L4.04638e-08 12.6483Z" fill="#BEC1C5" />
      <path d="M12 6.64835C12 6.35072 12.3134 6.15734 12.5794 6.29086L15.285 7.64895C15.5796 7.79682 15.5789 8.21754 15.2839 8.36449L12.5783 9.71197C12.3124 9.84441 12 9.651 12 9.35392L12 6.64835Z" fill="#BEC1C5" />
    </svg>
    <span class="rank-text">42.</span>
    <div class="change-box change-box-positive">
      <svg class="change-arrow change-arrow-positive" xmlns="http://www.w3.org/2000/svg" width="8" height="6" viewBox="0 0 8 6" fill="none">
        <path d="M4 0L0 6H8L4 0Z" fill="#47AD45" />
      </svg>
      <span class="change-text change-text-positive">+10</span>
      </s>
    </div>
  </div>
</a>

<br />

<a class="jw-link" target="_blank" href="https://www.justwatch.com/us/movie/forrest-gump">
  <div class="wrapper">
    <svg class="jw-logo" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
      <path d="M4 2.64835C4 2.35072 4.31345 2.15734 4.57945 2.29086L7.28502 3.64895C7.57961 3.79682 7.57895 4.21754 7.2839 4.36449L4.57832 5.71197C4.3124 5.84441 4 5.651 4 5.35392L4 2.64835Z" fill="#BEC1C5" />
      <path d="M4 10.6483C4 10.3507 4.31345 10.1573 4.57945 10.2909L7.28502 11.6489C7.57961 11.7968 7.57895 12.2175 7.2839 12.3645L4.57832 13.712C4.3124 13.8444 4 13.651 4 13.3539L4 10.6483Z" fill="#BEC1C5" />
      <path d="M4 6.64835C4 6.35072 4.31345 6.15734 4.57945 6.29086L7.28502 7.64895C7.57961 7.79682 7.57895 8.21754 7.2839 8.36449L4.57832 9.71197C4.3124 9.84441 4 9.651 4 9.35392L4 6.64835Z" fill="#BEC1C5" />
      <path d="M8 4.64835C8 4.35072 8.31345 4.15734 8.57945 4.29086L11.285 5.64895C11.5796 5.79682 11.5789 6.21754 11.2839 6.36449L8.57832 7.71197C8.3124 7.84441 8 7.651 8 7.35392L8 4.64835Z" fill="#BEC1C5" />
      <path d="M4.04638e-08 4.64835C2.18888e-08 4.35072 0.313449 4.15734 0.579446 4.29086L3.28502 5.64895C3.57961 5.79682 3.57895 6.21754 3.2839 6.36449L0.578324 7.71197C0.312401 7.84441 2.27861e-07 7.651 2.0932e-07 7.35392L4.04638e-08 4.64835Z" fill="#BEC1C5" />
      <path d="M4.04638e-08 0.648349C2.18888e-08 0.350722 0.313449 0.157339 0.579446 0.290859L3.28502 1.64895C3.57961 1.79682 3.57895 2.21754 3.2839 2.36449L0.578324 3.71197C0.312401 3.84441 2.27861e-07 3.651 2.0932e-07 3.35392L4.04638e-08 0.648349Z" fill="#BEC1C5" />
      <path d="M8 8.64835C8 8.35072 8.31345 8.15734 8.57945 8.29086L11.285 9.64895C11.5796 9.79682 11.5789 10.2175 11.2839 10.3645L8.57832 11.712C8.3124 11.8444 8 11.651 8 11.3539L8 8.64835Z" fill="#BEC1C5" />
      <path d="M4.04638e-08 8.64835C2.18888e-08 8.35072 0.313449 8.15734 0.579446 8.29086L3.28502 9.64895C3.57961 9.79682 3.57895 10.2175 3.2839 10.3645L0.578324 11.712C0.312401 11.8444 2.27861e-07 11.651 2.0932e-07 11.3539L4.04638e-08 8.64835Z" fill="#BEC1C5" />
      <path d="M4.04638e-08 12.6483C2.18888e-08 12.3507 0.313449 12.1573 0.579446 12.2909L3.28502 13.6489C3.57961 13.7968 3.57895 14.2175 3.2839 14.3645L0.578324 15.712C0.312401 15.8444 2.27861e-07 15.651 2.0932e-07 15.3539L4.04638e-08 12.6483Z" fill="#BEC1C5" />
      <path d="M12 6.64835C12 6.35072 12.3134 6.15734 12.5794 6.29086L15.285 7.64895C15.5796 7.79682 15.5789 8.21754 15.2839 8.36449L12.5783 9.71197C12.3124 9.84441 12 9.651 12 9.35392L12 6.64835Z" fill="#BEC1C5" />
    </svg>
    <span class="rank-text">42.</span>
    <div class="change-box change-box-negative">
      <svg class="change-arrow change-arrow-negative" xmlns="http://www.w3.org/2000/svg" width="8" height="6" viewBox="0 0 8 6" fill="none">
        <path d="M4 0L0 6H8L4 0Z" fill="#FF0000" />
      </svg>
      <span class="change-text change-text-negative">–8</span>
      </s>
    </div>
  </div>
</a>
              
            
!

CSS

              
                .bg-black {
  background: #000;
}

.jw-link {
  text-decoration: none;
}
.jw-logo {
  filter: brightness(0) saturate(100%) invert(79%) sepia(56%) saturate(449%)
    hue-rotate(357deg) brightness(94%) contrast(97%);
}
.wrapper {
  display: flex;
  align-items: center;
  flex-direction: row;
}
.rank-text {
  font-size: 24px;
  padding-left: 8px;
  padding-right: 8px;
  color: #bec1c5;
}
.change-arrow-negative {
  transform: rotate(180deg);
}
.change-box {
  font-size: 16px;
  padding-left: 8px;
  display: flex;
  align-items: center;
  border-radius: 16px;
}
.change-box-positive {
  border: 1px solid #47ad45;
}
.change-box-negative {
  border: 1px solid #ff0000;
}
.change-text {
  padding: 2px 6px 2px 4px;
}
.change-text-positive {
  color: #47ad45;
}
.change-text-negative {
  color: #ff0000;
}

              
            
!

JS

              
                
              
            
!
999px

Console