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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

    <h1>Accessible "Read More" Links</h1>

    <h2>The Problem</h2>

    <p>Ah yes, the elusive "Read More" link. These are a common design treatment to instruct users to, indeed, read more. Yet, when it comes to an <abbr title="Assistive Technology">AT</abbr> user, links like these give too little context to be meaningful.</p>

    <p>Here's an example of what we're refering to:</p>

    <a href="#" class="read-more no-context">Read More</a>

    <p>If you were using a screen reader right now, how would you know what this link meant? Read more about what?</p>

    <h2>A Solution</h2>

    <p>Here's an easy and effective solution to give users more context:</p>

    <a href="#" class="read-more with-context">Read More <span class="visuallyhidden">about the topic this article is pertaining to.</span></a>

    <p>See any extra text? Me neither. This is the result of the <code>.visuallyhidden</code> CSS class hiding the extra text. If you were to test this with a screen reader, it would read aloud the full text within the <code>&lt;anchor&gt;</code> element
        and the hidden <code>&lt;span&gt;</code> element, giving much more context to the user. This lends further details on what the user is about to click and is indeed what they're looking for.</p>

              .read-more {
    background-color: Crimson;
    border-radius: 5px;
    color: white;
    display: block;
    margin: 1.5em 0;
    padding: 0.5em;
    text-align: center;
    text-decoration: none;
    width: 6em;

.read-more:hover {
    color: White;

.no-context {
    background-color: Crimson;

.with-context {
    background-color: ForestGreen;

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;

🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.