Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ add another resource

JavaScript

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

Packages

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.

Behavior

Auto Save

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.

HTML

              
                <div aria-label="Close" role="button" data-focusable="true" tabindex="0" class="css-18t94o4 css-1dbjc4n r-1niwhzg r-42olwf r-sdzlij r-1phboty r-rs99b7 r-1w2pmg r-1vuscfd r-53xb7h r-mk0yit r-o7ynqc r-6416eg r-lrvibr" style="margin-left: calc(5px + ((-1 * (41px - 1.5em)) / 2));">
	<div dir="auto" class="css-901oao r-1awozwy r-13gxpu9 r-6koalj r-18u37iz r-16y2uox r-1qd0xha r-a023e6 r-vw2c0b r-1777fci r-eljoum r-dnmrzs r-bcqeeo r-q4m81j r-qvutc0">
		<svg viewBox="0 0 24 24" class="r-13gxpu9 r-4qtqp9 r-yyyyoo r-1q142lx r-50lct3 r-dnmrzs r-bnwqim r-1plcrui r-lrvibr">
			<g>
				<path d="M13.414 12l5.793-5.793c.39-.39.39-1.023 0-1.414s-1.023-.39-1.414 0L12 10.586 6.207 4.793c-.39-.39-1.023-.39-1.414 0s-.39 1.023 0 1.414L10.586 12l-5.793 5.793c-.39.39-.39 1.023 0 1.414.195.195.45.293.707.293s.512-.098.707-.293L12 13.414l5.793 5.793c.195.195.45.293.707.293s.512-.098.707-.293c.39-.39.39-1.023 0-1.414L13.414 12z"></path>
			</g>
		</svg>
		<span class="css-901oao css-16my406 css-bfa6kz r-1qd0xha r-ad9z0x r-bcqeeo r-qvutc0"></span>
	</div>
</div>
              
            
!

CSS

              
                .r-53xb7h {
	min-width: 39px;
}

.r-1vuscfd {
	min-height: 39px;
}

.r-6416eg {
	transition-property: background-color, box-shadow;
}

.r-o7ynqc {
	transition-duration: 0.2s;
}

.r-1niwhzg {
	background-color: rgba(0, 0, 0, 0);
}

.r-1w2pmg {
	height: 0px;
}

.r-lrvibr {
	-moz-user-select: none;
	-ms-user-select: none;
	-webkit-user-select: none;
	user-select: none;
}

.r-mk0yit {
	padding-left: 0px;
	padding-right: 0px;
}

.r-42olwf {
	border-bottom-color: rgba(0, 0, 0, 0);
	border-left-color: rgba(0, 0, 0, 0);
	border-right-color: rgba(0, 0, 0, 0);
	border-top-color: rgba(0, 0, 0, 0);
}

.r-rs99b7 {
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-right-width: 1px;
	border-top-width: 1px;
}

.r-1phboty {
	border-bottom-style: solid;
	border-left-style: solid;
	border-right-style: solid;
	border-top-style: solid;
}

.r-sdzlij {
	border-bottom-left-radius: 9999px;
	border-bottom-right-radius: 9999px;
	border-top-left-radius: 9999px;
	border-top-right-radius: 9999px;
}

.css-1dbjc4n {
	-ms-flex-align: stretch;
	-ms-flex-direction: column;
	-ms-flex-negative: 0;
	-ms-flex-preferred-size: auto;
	-webkit-align-items: stretch;
	-webkit-box-align: stretch;
	-webkit-box-direction: normal;
	-webkit-box-orient: vertical;
	-webkit-flex-basis: auto;
	-webkit-flex-direction: column;
	-webkit-flex-shrink: 0;
	align-items: stretch;
	border: 0 solid black;
	box-sizing: border-box;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	flex-basis: auto;
	flex-direction: column;
	flex-shrink: 0;
	margin-bottom: 0px;
	margin-left: 0px;
	margin-right: 0px;
	margin-top: 0px;
	min-height: 0px;
	min-width: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
	padding-right: 0px;
	padding-top: 0px;
	position: relative;
	z-index: 0;
}

.css-18t94o4 {
	cursor: pointer;
}

.r-eljoum {
	line-height: 1;
}

.r-vw2c0b {
	font-weight: bold;
}

.r-a023e6 {
	font-size: 15px;
}

.r-1qd0xha {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
}

.r-qvutc0 {
	overflow-wrap: break-word;
}

.r-bcqeeo {
	min-width: 0px;
}

.r-1awozwy {
	-webkit-box-align: center;
	align-items: center;
}

.r-1777fci {
	-webkit-box-pack: center;
	justify-content: center;
}

.r-16y2uox {
	-webkit-box-flex: 1;
	flex-grow: 1;
}

.r-18u37iz {
	-webkit-box-direction: normal;
	-webkit-box-orient: horizontal;
	flex-direction: row;
}

.r-q4m81j {
	text-align: center;
}

.r-13gxpu9 {
	color: rgba(29,161,242,1.00);
}

.r-dnmrzs {
	max-width: 100%;
}

.r-6koalj {
	display: flex;
}

.css-901oao {
	border: 0 solid black;
	box-sizing: border-box;
	color: rgba(0,0,0,1.00);
	display: inline;
	font: 14px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",sans-serif;
	margin-bottom: 0px;
	margin-left: 0px;
	margin-right: 0px;
	margin-top: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
	padding-right: 0px;
	padding-top: 0px;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.r-50lct3 {
	height: 1.5em;
}

.r-1q142lx {
	flex-shrink: 0;
}

.r-13gxpu9 {
	color: rgba(29,161,242,1.00);
}

.r-lrvibr {
	-moz-user-select: none;
	-ms-user-select: none;
	-webkit-user-select: none;
	user-select: none;
}

.r-1plcrui {
	vertical-align: text-bottom;
}

.r-bnwqim {
	position: relative;
}

.r-dnmrzs {
	max-width: 100%;
}

.r-yyyyoo {
	fill: currentcolor;
}

.r-4qtqp9 {
	display: inline-block;
}

.r-1qd0xha {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
}

.r-qvutc0 {
	overflow-wrap: break-word;
}

.r-bcqeeo {
	min-width: 0px;
}

.r-ad9z0x {
	line-height: 1.3125;
}

.css-bfa6kz {
	max-width: 100%;
	overflow-x: hidden;
	overflow-y: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.css-16my406 {
	color: inherit;
	font: inherit;
	white-space: inherit;
}

.css-901oao {
	border: 0 solid black;
	box-sizing: border-box;
	color: rgba(0,0,0,1.00);
	display: inline;
	font: 14px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",sans-serif;
	margin-bottom: 0px;
	margin-left: 0px;
	margin-right: 0px;
	margin-top: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
	padding-right: 0px;
	padding-top: 0px;
	white-space: pre-wrap;
	word-wrap: break-word;
}
              
            
!

JS

              
                
              
            
!
999px

Console