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.

              <a href="#" class="ticketItem">
  <span class="ticketItem-date">Samedi 14 juillet</span>
  <strong class="ticketItem-price">59€</strong>
  <small class="ticketItem-infos">Billet valable pour une personne, toute sortie est définitive</small>
  <span class="ticketItem-book">Réserver</span>
              * {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

html, body {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

.ticketItem {
  display: flex;
  flex-direction: column;
  width: 12em;
  background-color: white;
  text-align: center;
  color: inherit;
  text-decoration: none;
  margin: auto;
  box-shadow: 0 5px 20px rgba(black,.1);
  padding: 2em 1em;
  font-size: 1.25em;
  transition: all 250ms;
  position: relative;

  &:focus {
    box-shadow: 0 20px 40px rgba(black,.1);
    transform: scale(1.1) translateY(-10px);

  &:after {
    content: '';
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin-top: -1px;
    height: 1em;
    background-image: linear-gradient(135deg, #dc0c2b 33.33%, transparent 33.33%),
                      linear-gradient(225deg, #dc0c2b 33.33%, transparent 33.33%);
    background-size: 1em 2em, 1em 2em;

  &-date {
    text-transform: uppercase;
    font-size: 0.9em;

  &-price {
    font-size: 2em;
    margin-top: 0.25em;
    margin-bottom: 0.25em;

  &-infos {
    opacity: .5;
    margin-bottom: 2em;

  &-book {
    text-transform: uppercase;
    background-color: #dc0c2b;
    color: white;
    padding: 1em;
    margin: 1em -1em -2em;
    margin-top: auto;
    font-weight: bold;
Loading ..................