Pen Settings



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


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.


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.


 <h1>List of blog posts</h1>
 <ul class="blog-posts-container">
   <a href="">CSS can do that?</a>
   <a href="">HTML can do that?</a>
   <a href="">CSS-only components</a>
    href="">How to practically use Performance API</a>
   <a href="">Useful CSS Media Query Features</a>



                body {
 background-color: #f7f7f7;
 display: flex;
 height: 100vh;
 justify-content: center;
 align-items: center;
 font-family: sans-serif;

section {
 border: 2px dashed #ccc;
 padding: 2em;

h1 {
 margin-bottom: 1.8em;
ul {
 list-style-type: none;
 padding: 0;

li {
 margin-bottom: 1.6em;
 font-size: 1.2em;

li:last-child {
 margin-bottom: 0;

a {
 color: cadetblue;
 text-decoration: none;
	font-weight: bold;

a:active {
 color: #9f64a9;
	/* trick to avoid focus line on click, the focus line will only be applied when navigating with keyboard */
a:focus:not(:focus-visible) {
 outline: 2px solid transparent;

a:focus {
 outline: 2px solid #9f64a9;