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 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.

Quick-add: + add another resource

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.

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" />
<p>
  ANLEITUNG<br /> 1. Geh mit der Maus über den Link und klicke auf den Link<br /> 2. Navigieren per Tastatur (Tab-Taste) zum Link
</p>
<p>
  <em>[Der :visible status kommt aus Demonstrations-Gründen nicht vor]</em>
</p>
<a class="big" href="#">KlickMich</a>
            
          
!
            
              body {
  margin: 0 auto;
  padding: 3em;
  font-family: Arial, sans-serif;
  width: 600px;
  line-height:1.4;
}


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

a:link,
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;
}

a:focus,
.focus {
  background: orange;
  color: white;
}

a:hover,
.hover {
  background: #8caa5c;
  color: white;
}

a:active,
.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;
}
            
          
!
999px
Loading ..................

Console