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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


Babel includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.


                	<!-- error notification -->
	<div id="error" class="message">
		<a class="btn-close" id="btn-error" href="javascript:void(0);" title="Close">&times;</a>
		<span class="message__title">Внимание!</span> Сообщение о критической ошибке.

	<!-- warning notification -->
	<div id="warning" class="message">
		<a class="btn-close" id="btn-warning" href="javascript:void(0);" title="Close">&times;</a>
		<span class="message__title">Упс!</span> Предупреждающее сообщение.

	<!-- info notification -->
	<div id="info" class="message">
		<a class="btn-close" id="btn-info" href="javascript:void(0);" title="Close">&times;</a>
		<span class="message__title">Важно!</span> Просто информационное сообщение.

	<!-- success notification -->
	<div id="success" class="message">
		<a class="btn-close" id="btn-success" href="javascript:void(0);" title="Close">&times;</a>
		<span class="message__title">Поздравляем!</span> Сообщение об успешном действии.


	min-height: 100%;
	font-size: 62.5%;

	font-size: 1.6rem;
	font-family: 'Roboto Slab', serif;
	background-color: #e4e4e4;

/* common styles for message block */

.message {
	width: 80%;
	margin: 20px auto;
	padding: 15px;
	-webkit-box-shadow: 0 0 8px rgba(0,0,0,.3);
	box-shadow: 0 0 8px rgba(0,0,0,.3);
	border-left-width: 8px;
	border-left-style: solid;
	border-radius: 5px;

/* title of message block */

.message__title {
	font-weight: 700;

/* button close of message block */

.btn-close {
	float: right;
	text-decoration: none;
	color: inherit; /* link inherit color from parent block .message */

.btn-close:focus {
	outline: none;

/* block error */

.message#error {
	background-color: tomato;
	color: #fff;
	border-left-color: #dc3d21;

/* block warning */

.message#warning {
	background-color: #eaaf51;
	color: #6b6d31;
	border-left-color: #df8b00;

/* block info */

.message#info {
	background-color: #4ea5cd;
	color: #beecfc;
	border-left-color: #3b8eb5;

/* block success */

.message#success {
	background-color: #61b832;
	color: #296829;
	border-left-color: #55a12c;


                window.onload = function () {

	document.getElementById('btn-error').onclick = function(){
		document.getElementById('error').setAttribute('style','display: none;');

	document.getElementById('btn-warning').onclick = function(){
		document.getElementById('warning').setAttribute('style','display: none;');

	document.getElementById('btn-info').onclick = function(){
		document.getElementById('info').setAttribute('style','display: none;');

	document.getElementById('btn-success').onclick = function(){
		document.getElementById('success').setAttribute('style','display: none;');