cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

              <h1>Demo a:link, a:focus, a:hover, a:active</h1>

<p><strong>Hier eine Übersicht wie die einzelnen Link-Zustände farblich gestaltet sind. </strong></p>
<span class="left" href="#">a:link</span>
<span class="left visited" href="#">a:visited</span>
<span class="left hover" href="#">a:hover</span>
<span class="left focus" href="#">a:focus</span>
<span class="left active" href="#">a:active</span>
<hr class="clear" />
  ANLEITUNG<br /> 1. Geh mit der Maus über den Link und klicke auf den Link<br /> 2. Navigieren per Tastatur (Tab-Taste) zum Link
  <em>[Der :visible status kommt aus Demonstrations-Gründen nicht vor]</em>
<a class="big" href="#">KlickMich</a>
              body {
  margin: 0 auto;
  padding: 3em;
  font-family: Arial, sans-serif;
  width: 600px;

/* link, visited, focus, hover, active */

span {
  padding: 0.5em 1em;
  background: #bddd8a;
  text-decoration: none;
  color: black;
  margin: 1em;
  display: inline-block;

a:link {
  box-shadow: 3px 3px 10px #444;

/* "deactivate" visited state visually for demo perpose*/

a:visited {
  background: #bddd8a;
  color: black;

.visited {
  background: #afadad;
  color: white;

.focus {
  background: orange;
  color: white;

.hover {
  background: #8caa5c;
  color: white;

.active {
  background: red;
  color: white;

/*helper styles */

.left {
  float: left;
  margin-right: 1em;

.clear {
  clear: both;

.big {
  padding: 1em 2em;
  font-size: 2em;
  font-weight: bold;
Loading ..................