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

              
                <div>
<img src="https://assets.codepen.io/2729/ramaswamy_notepad.png" width="898" height="500" alt="From a screen labeled Republican Primary Debate, a man of Indian heritage wearing a blue suit and red tie wags has finger to someone off camera while holding a white legal notepad in his other hand with the following text scrawled on it:">
  <p>
    <span>
    alt<br>=<br>“note<wbr>pad”
    </span>
  </p>
</div>
              
            
!

CSS

              
                /* Change this size based on your text. */
p span {
  font-size: 6.2dvw;
}

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1;
  background-color: #000;
  padding: 0;
  margin: 0;
}

body {
  height: 100dvh;
  display: grid;
  align-content: center;
  justify-content: stretch;
}

div {
  position: relative;
}

img {
  width: 100%;
  height: auto;
}

p {
/*   outline: 2px solid #0f0; */
  font-family: 'Indie Flower', cursive;
  font-weight: bold;
  line-height: 1;
  text-transform: uppercase;
  position: absolute;
  top: 22.5%;
  left: 68.3%;
  height: 45.8%;
  width: 19.8%;
  transform: rotate(6.2deg);
  text-align: center;
  overflow: hidden;
  margin: 0;
  padding: .2em 0 0 0;
}
              
            
!

JS

              
                
              
            
!
999px

Console