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>CSS Challenge</p>

<p class="active">this is a <a href="#">link</a></p>

<p>How would you code it?</p>

<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias, nostrum aspernatur beatae hic incidunt voluptas aut ut! Quod maiores provident vero maxime voluptas ipsum, veritatis optio <a href="#">expedita ducimus</a>, tenetur debitis similique, iste aliquam ratione delectus inventore facere libero quas cum quos accusamus perspiciatis placeat et.</p>

<p class="smaller-text">Numquam illum quis error quas molestias nisi, possimus architecto neque earum necessitatibus ab autem non? Aut quam iste doloremque, ipsum nisi reiciendis vitae harum laborum! <a href="#">Fuga natus enim molestias error totam commodi</a> porro aut, quod quasi, inventore quas in dicta nemo, mollitia obcaecati tempore. Non, repudiandae, reiciendis. Voluptatum exercitationem ipsam nemo optio impedit incidunt. Dicta!</p>


                body {
  background: #f3f3f4;
  color: #9B9B9B;
  font-size: 2em;
  font-family: sans-serif;  
  font-weight: 600;
  width: 50%;
  max-width: 600px;
  margin: 2em auto

.active {
  color: #000;

.smaller-text {
  font-size: 15px;
  font-weight: normal;

.smaller-text a:after {
  font-size: 15px;
  font-weight: normal;

a {
  text-decoration: none;
  color: red;
  display: inline-block;
  position: relative;

a:after {
  content: " ";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-bottom: 0.1em solid black;
  transform: translate3d(0px, 1em, 0);
  transition: all 0.5s;
  opacity: 0;

a:hover:after {
  transform: translate3d(0,0,0);
  opacity: 1;