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 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.



Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO


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.


Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:


Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO


                <div class="container">
    <div class="box">
        <div class="text">
        <button class="btn">click-click</button>

    <div class="box">
        <div class="text">
            <span>Lorem ipsum dolor sit amet, consectetur  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquam, placeat quia? Amet, cupiditate eius, eligendi, esse eum exercitationem explicabo impedit labore laborum non obcaecati odio quo reiciendis repellendus sunt tempore?</span>
        <button class="btn">click-click</button>

    <div class="box">
        <div class="text">
            <span>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Animi, aspernatur, at cLorem ipsum dolor sit amet, consectetur Lorem ipsum dolor sit amet, consectetur Lorem ipsum dolor sit amet, consectetur Lorem ipsum dolor sit amet, consectetur orporis culpa dolor, dolorum ducimus earum enim facilis fugit illum labore mollitia natus nesciunt pariatur perspiciatis quo recusandae reiciendis repellat ullam? Aliquam amet animi architecto autem corporis cumque dicta dolore ducimus error esse eum eveniet excepturi facilis id illo impedit libero, natus nulla pariatur provident quae quas quasi quidem quo reiciendis velit veniam vitae! Beatae corporis culpa dignissimos dolore eligendi est impedit ipsum maxime molestiae mollitia, odio officia pariatur reprehenderit, ullam voluptates! Architecto culpa dolorum ducimus hic, id labore laudantium natus nobis optio pariatur placeat quia, rem repudiandae rerum saepe sapiente sequi vel? Alias atque autem cumque deleniti doloremque eaque fuga inventore itaque laborum magni minima obcaecati optio provident quam rem rerum saepe soluta tempore, ullam voluptatem! Atque, nulla.</span>
        <button class="btn">click-click</button>


	margin: 0
	padding: 0
	box-sizing: border-box

	font: normal 16px Arial, Ubuntu, sans-serif
	color: #093143

	background-color: #f1f1f1

	min-height: 100vh
	height: 500px
	display: flex
	justify-content: center
	align-items: center

	min-height: 470px
	max-width: 400px
	width: 100%
	border: 2px solid #e16271
	border-radius: 4px
	padding: 0 10px
	position: relative
	display: flex
	justify-content: space-between
	align-items: center
	flex-direction: column
	margin: 0 10px

		content: ''
		min-height: 20px
		max-height: 80px
		flex-grow: 8
		width: 100%
		display: block
		background-color: rgba(0, 0, 255, 0.10)

	padding: 10px 20px
	text-transform: uppercase
	color: #fff
	background-color: #eb6676
	border: 0
	border-radius: 4px
	//transform: translateX(-50%)
	//position: absolute
	//left: 50%
	//bottom: 30px
	cursor: pointer
	transition: background-color .4s
	margin-bottom: 35px
	margin-top: 10px

		background-color: #db606d



What did the colon say to the semicolon? Stop winking at me.