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>Pure CSS Ordered Lists</h1>
  <li>¼ tsp brewer's yeast.</li>
  <li>225g caster sugar.</li>
  <li>1½-2 tbsp finely grated fresh root ginger.</li>
  <li>Juice of 1 lemon.</li>
  <li>1 good tbsp honey.</li>
              @import "compass/css3";

$secondary-color: #f0e8dd;
$primary-color: #1f398f;
$alert-color: #861f83;
$code-font-family: "PT Mono";

body {
  font-family: "PT Serif";
  font-size: 19px;
  padding: 0 40px;
  background: scale-color( $secondary-color, $lightness: 50% );

ol {
	list-style: none;
	counter-reset: li;
	margin-left: 57px;
	li {
	  line-height: 32px;
		counter-increment: step;
		position: relative;
		border-bottom: 1px dotted scale-color( $secondary-color, $lightness: -15% );
		&:before {
			content: counter( step, decimal );
			display: block;
			@include border-radius(50%);
		   width: 30px;
		   height: 30px;
		   background: scale-color( $primary-color, $lightness: 30% );
		   @include background-image( radial-gradient( scale-color( $primary-color, $lightness: 50% ), scale-color( $primary-color, $lightness: 30% ), $primary-color ) );
		   color: $secondary-color;
		   font-family: $code-font-family;
		   line-height: 32px;
		   font-size: 14px;
		   text-align: center;
		   @include text-shadow( $primary-color 1px 1px 0 );
		   position: absolute;
		   left: -47px;
		&:nth-child(even):before {
			@include text-shadow( $alert-color 1px 1px 0 );
			background: scale-color( $alert-color, $lightness: 20% );
			@include background-image( radial-gradient( scale-color( $alert-color, $lightness: 40% ), scale-color( $alert-color, $lightness: 20% ), $alert-color ) );
Loading ..................