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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.


                <p>The unresponsive svg</p>
<p>It was unresponsive because - I think - the toppic-div only had a max-height and no width of any sort. That made the image overflow the div and stick to it's original size.<br />It's still not behaving quite like I would want.</p>
<div class="masterdiv">
<div class="toppic"><img src="" alt="inlogknop" class="toppicknop" /></div>


                @import url('');

body {
  background-color: #F7ECDD;
  margin: 2rem;
  font-family: Roboto;
  font-size: 16px;

  position: relative;
  width: 75%;
  height: 75vh;
  padding: 10px;
  border: 3px solid red;

  position: absolute;
  max-width: 20%;
  right: 1%;
  bottom: 12%;

  width: 100%;
  height: auto;