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.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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.

+ add another resource


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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.



<div id="openModal" class="modalDialog">
	<div id="round">
		<a href="#close" title="Close" class="close">x close</a>
		<h2>Modal Windows</h2>
		<p>Don't always have to be rectangles after all!</p>

<p>Try CSS Modal Window Sample 1:</p>
<a href="#openModal" class="bluebtn">Open Modal</a>
<li>Modal Window with CSS:</li>



                body{	font-family: verdana, sans-serif;
font-size: .85em}

.bluebtn {
	background: #58a;
	text-align: center;
    margin: 3em;
    width: 40%;
    border: 1px solid;
    border-color: #666;
    background-color: #066882;
    color: #fff;
     -webkit-border-radius: .3em;
    -moz-border-radius: .3em;
    border-radius: .3em;

.bluebtn:hover {
    background-color: #FC8F30;
    color: #000;

.modalDialog {
	position: fixed;
	font-family: verdana, sans-serif;
	top: 4em;
	right: 0;
	bottom: 0;
	left: 0;
    background: linear-gradient(to right, #abe3fa 50%, #58a 0); 
	background: -moz-linear-gradient(to right, #abe3fa 50%, #58a 0);
	background: -webkit-linear-gradient(to right, #abe3fa 50%, #58a 0);
	background: -o-linear-gradient(to right, #abe3fa 50%, #58a 0);
    background-size: 30px 100%;	
	z-index: 99999;
	-webkit-transition: opacity 400ms ease-in;
	-moz-transition: opacity 400ms ease-in;
	transition: opacity 400ms ease-in;
	-webkit-transform: translateY(20px) 5s ease-in;
	-moz-transform: translateY(20px)  5s ease-in;
	 transform: translateY(20px)  5s ease-in;
	pointer-events: none;}
.modalDialog:target {
	pointer-events: auto;

.modalDialog > div {
	width: 14em;
	height: 14em;
	top: 0;
	position: relative;
	margin: 10% auto;
	padding: 5px 20px 13px 20px;
	border-radius: 100%;
	background: #fff;
	background: -moz-linear-gradient(#fff, #ffff0);
	background: -webkit-linear-gradient(#fff, #ffff0);
	background: -o-linear-gradient(#fff, ##ffff0);
	animation: curve 2s 0s infinite  ease-in-out;
.close {
	background: #606061;
	color: #FFFFFF;
	line-height: 20px;
	text-align: center;
	top: -10px;
	width: 40%;
	text-decoration: none;
	font-weight: bold;
	-webkit-border-radius: 10%;
	-moz-border-radius: 10%;
	border-radius: 5%;
	-moz-box-shadow: 1px 1px 3px #000;
	-webkit-box-shadow: 1px 1px 3px #000;
	box-shadow: 1px 1px 3px #000;

.close:hover { background: #58a; }

@keyframes curve{
	0%  {transform: rotate(0deg);}
	25% {transform: rotate(-10deg);}
	50% {transform: rotate(0deg);}
	75% {transform: rotate(10deg);}
	100% {transform: rotate(0deg);}
padding: 10%;