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>Normal Logo</h1>
	<a href="http://www.milesplit.com" class="milesplit"><strong>Mile</strong><em>Split</em></a>
	<h1>Small Logo</h1>
	<a href="http://www.milesplit.com" class="milesplit small"><strong>Mile</strong><em>Split</em></a>
	<h1>Large Logo</h1>
	<a href="http://www.milesplit.com" class="milesplit large"><strong>Mile</strong><em>Split</em></a>
	<h1>Huge Logo</h1>
	<a href="http://www.milesplit.com" class="milesplit huge"><strong>Mile</strong><em>Split</em></a>
	
            
          
!
            
              	/* Generic */
	a.milesplit {
		display: block;	position: relative; cursor: pointer; text-decoration: none; font-weight: bold; height: 100px; line-height: 100px;
		font-weight: bold; font-family: Verdana, Tahoma, Calibri, Helvetica, Menlo, "Droid Sans", sans-serif; font-style: italic; font-size: 42px;
	}
	a.milesplit strong { font-size: 42px; }
	a.milesplit em { font-size: 42px; width: auto; }
	/* Old Browsers (will override this) */
	a.milesplit strong { color: #a00; }
	a.milesplit em { color: #00a; }
	/* Modern Browsers */
	@media only screen and (width) {
		a.milesplit:before {
			display: block; position: absolute; content:'';
			border: solid 50px #a00; width: 0px; height: 0px; font-size: 0px; line-height: 0%;
			-webkit-border-radius: 50%;	-ms-border-radius: 50%;	-o-border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%;
			-ms-transform: skew(-15deg); -o-transform: skew(-15deg); -moz-transform: skew(-15deg); -webkit-transform: skew(-15deg); transform: skew(-15deg);
			-moz-box-shadow: 1px 3px 5px 0px #bbb; -webkit-box-shadow: 1px 3px 5px 0px #bbb; box-shadow: 0px 3px 5px 0px #bbb;
			-webkit-transition: all .2s; -moz-transition: all .2s; -o-transition: all .2s; -ms-transition: all .2s; transition: all .2s;
		}
		a.milesplit strong {
			display: block; position: absolute; top: -3px; left: 0px; z-index: 2; color: #fff;
			-ms-transform: scaleY(1.1);	-o-transform: scaleY(1.1); -moz-transform: scaleY(1.1);	-webkit-transform: scaleY(1.1);	transform: scaleY(1.1);
			background: -moz-radial-gradient(40%, ellipse cover, rgba(255,0,0,.4) 10%,
				rgba(255,0,0,0) 50%, rgba(255,0,0,0) 100%);
			background: -webkit-radial-gradient(40%, ellipse cover, rgba(255,0,0,.5) 10%,
				rgba(255,0,0,0) 50%, rgba(255,0,0,0) 100%);
			background: -o-radial-gradient(40%, ellipse cover, rgba(255,0,0,.5) 10%,
				rgba(255,0,0,0) 50%, rgba(255,0,0,0) 100%);
			background: -ms-radial-gradient(40%, ellipse cover, rgba(255,0,0,.5) 10%,
				rgba(255,0,0,0) 50%, rgba(255,0,0) 100%);
			background: radial-gradient(40%, ellipse cover, rgba(255,0,0,.5) 10%,
				rgba(255,0,0,0) 50%, rgba(255,0,0,0) 100%);
		}
		a.milesplit em {
			display: block; position: absolute; top: -3px; left: 99px;
			-ms-transform: scaleY(1.1);	-o-transform: scaleY(1.1); -moz-transform: scaleY(1.1);	-webkit-transform: scaleY(1.1);	transform: scaleY(1.1); transform: scaleY(1.1);
			text-shadow: 1px 1px 2px #ccc;
		}
		a.milesplit em:before {
			display: block; position: absolute; top: 54px; left: 5px; background: #fff; height: 3px; width: 43px; content: ''; z-index:2; text-shadow: none;
		}
		a.milesplit em:after {
			display: block; position: absolute; top: 54px; left: 60px; background: #fff; height: 3px; width: 50px; content: ''; z-index:2; text-shadow: none;
		}
		a.milesplit:hover:before {
			background: none;
			border-color: #c00; background-image: none;
			-moz-box-shadow: 1px 1px 5px 3px #aaa; -webkit-box-shadow: 1px 5px 3px 3px #aaa; box-shadow: 1px 1px 5px 3px #aaa;
		}
		a.milesplit:hover em {text-shadow: 1px 1px 2px #999; color: #00c; }
	}
	/* Target Mobile Safari on smartphone... stupid bug */
	@media screen and (-webkit-min-device-pixel-ratio:0) and (max-device-width: 999px) and (max-width: 999px) {
		a.milesplit:before { border: none; -webkit-box-shadow: none; box-shadow: none; }
		a.milesplit strong { background: none; color: #a00; text-shadow: 1px 1px 2px #ccc; }
	}
	/* Target FF and Opera Mobile */
	@media screen and (min-width: 0px) and (max-device-width: 999px) and (max-width: 999px) {
	
	}
	/* Small */
	a.milesplit.small { height: 50px; line-height: 50px; font-size: 21px; }
	a.milesplit.small strong, a.milesplit.small em { font-size: 21px; }
	@media only screen and (width) {
		a.milesplit.small:before { border-width: 25px; }
		a.milesplit.small strong { top: -3px; left: 0px; }
		a.milesplit.small em { top: -3px; left: 50px; }
		a.milesplit.small em:before { top: 27px; left: 2px; height: 2px; width: 21px; }
		a.milesplit.small em:after { top: 27px; left: 30px; height: 2px; width: 25px; }
	}
	/* Large */
	a.milesplit.large { height: 200px; line-height: 200px; font-size: 84px; }
	a.milesplit.large strong, a.milesplit.large em { font-size: 84px; }
	@media only screen and (width) {
		a.milesplit.large:before { border-width: 100px; }
		a.milesplit.large strong { top: -12px; left: 0px; }
		a.milesplit.large em { top: -12px; left: 200px; }
		a.milesplit.large em:before { top: 108px; left: 8px; height: 8px; width: 84px; }
		a.milesplit.large em:after { top: 108px; left: 120px; height: 8px; width: 100px; }
	}
	/* Huge */
	a.milesplit.huge { height: 400px; line-height: 400px; font-size: 168px; }
	a.milesplit.huge strong, a.milesplit.huge em { font-size: 168px; }
	@media only screen and (width) {
		a.milesplit.huge:before { border-width: 200px; }
		a.milesplit.huge strong { top: -24px; left: 0px; }
		a.milesplit.huge em { top: -24px; left: 400px; }
		a.milesplit.huge em:before { top: 216px; left: 16px; height: 16px; width: 168px; }
		a.milesplit.huge em:after { top: 216px; left: 240px; height: 16px; width: 200px; }
	}
            
          
!
999px
Loading ..................

Console