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.


                <ul class="menu">
	<li class="active"><a href="#">Главная</a></li>
	<li><a href="#">Новости</a>
			<li><a href="#">Ссылка 1</a></li>
			<li><a href="#">Ссылка 2</a></li>
			<li><a href="#">Ссылка 3</a></li>
	<li><a href="#">Отзывы</a></li>
	<li><a href="#">Обратная связь</a></li>
	<li><a href="#">Контакты</a></li>


	background-color: #000
	font-family: 'Roboto Condensed', sans-serif
	font-size: 16px
	line-height: 1.5
	margin: 20px 0 0 0
	padding: 0
	list-style-type: none
	display: flex
	flex-direction: row
	flex-wrap: nowrap
	justify-content: center
	align-items: center
	align-content: center
	height: 50px
	border-top: 1px solid #111
	border-bottom: 1px solid #111
	> li
		margin: 0 10px
		position: relative
		height: 50px
		line-height: 50px
		&::after, &::before
			position: absolute
			left: 0
			height: 2px
			width: 100%
			background-color: yellow
			transform: scaleX(0)
			transition: transform 0.2s ease
			content: ' '
			bottom: 0	
			display: none
			top: 0		
		&:hover ul
			display: block
			transform: scaleX(1)
			position: absolute			
			margin: 0
			padding: 1px 0 0 0
			list-style-type: none
			width: 250px
			display: none
				position: absolute
				top: -10px
				left: 35px
				width: 0
				height: 0
				border-style: solid
				border-width: 0 5px 8px 5px
				border-color: transparent transparent yellow transparent
				content: ''
				background-color: yellow
				transition: all 0.5s ease
					background-color: red
						color: white
					color: #000
			text-decoration: none
			display: block
			padding: 0 15px
			color: white