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.


                <a class="skip-link" href="#main">Skip to content</a>

<nav class="navigation">
        <li><a href="#">Home</a></li>
        <li><a href="#">About</a></li>
        <li><a href="#">Contact</a></li>

<main id="main">
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus sit amet tellus dolor. Cras sed lectus maximus quam egestas egestas. Mauris non nulla tellus. Curabitur sed fringilla nulla. Nunc suscipit sapien vitae mi auctor tincidunt. Maecenas nunc lectus, <a href="#">accumsan id luctus</a> a, finibus vel ligula. Curabitur tellus justo, iaculis sed diam in, mattis efficitur nunc. Vivamus ut feugiat orci. Pellentesque convallis viverra mauris, id interdum ligula feugiat et. Praesent blandit ligula vitae quam sollicitudin fermentum. Curabitur ut tellus pellentesque, fringilla felis tincidunt, imperdiet nibh.</p>

    <p>Vivamus libero lorem, tempus in dapibus et, molestie ac ipsum. Mauris feugiat tincidunt metus sit amet interdum. <a href="#">Morbi maximus</a> blandit quam, accumsan porta dolor. Sed posuere nisl eu massa venenatis luctus. Nam eu mi luctus, luctus urna id, lacinia enim. Ut mollis odio at commodo imperdiet. Aliquam erat volutpat. Nullam ultricies aliquet vulputate. Integer semper sem a orci venenatis, eu hendrerit lectus varius. Vestibulum et ultricies dui. Phasellus ac orci eu lorem commodo ultricies. Nullam vel orci maximus, sodales lacus non, porta ex.</p>

    <p>Morbi vel nisl erat. Donec non magna in felis laoreet semper ut vulputate erat. Aliquam ut lorem in metus posuere vestibulum. Integer vestibulum in sapien quis pulvinar. Sed tristique, dolor ac vulputate efficitur, felis ex tristique magna, eu congue tortor dui et nisi. Nam justo lectus, vestibulum et bibendum quis, efficitur at est. Aenean in velit nisi. Fusce vulputate velit est, sed fringilla enim scelerisque vel. Duis elementum purus sit amet eros molestie placerat. Nam vitae urna varius, interdum tortor non, finibus leo. Pellentesque euismod neque non nibh hendrerit pulvinar. Nunc ultrices ligula et laoreet sagittis. Vivamus eget nunc sit amet nisl pulvinar tincidunt eget et est.</p>


                .skip-link {
    color: #fff;
    background: #000;
    padding: 0.5rem 1rem;
    display: inline-block;
    font-weight: 700;
    border-radius: 4px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;

    &:focus {
        top: 2rem;
        outline: 5px solid rgba(0, 0, 0, 0.1);

body {
    font-family: "Roboto", sans-serif;
    font-size: 1.1rem;

#main {
    margin: 0 auto 3rem;
    max-width: 600px;
    color: #787878;
    line-height: 1.55;

.navigation {
    background-color: #0268fc;
    border-radius: 3px;
    margin: 2rem auto 2rem;
    max-width: 600px;
    text-align: center;

    ul {
        margin: 0;
        padding: 0;
        list-style: none;

    li {
        display: inline-block;

    a {
        display: block;
        color: #fff;
        padding: 1rem;
        text-decoration: none;

        &:active {
            background-color: rgba(0, 0, 0, 0.1);