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

              
                <h1>Super Mario Timeline</h1>
<p>Initial launch dates of games in the Super Mario series. </p>
<ul class="timeline">
	<li><time datetime="1985-09">September 1985</time>Super Mario Brothers</li>
	<li><time datetime="1986-06">June 1986</time>Super Mario Bros:<br> The Lost Levels</li>
	<li><time datetime="1988-10">October 1988</time>Super Mario Bros. 2</li>
	<li><time datetime="1988-10">October 1988</time>Super Mario Bros. 3</li>
	<li><time datetime="1989-04">April 1989</time>Super Mario Land</li>
	<li><time datetime="1990-11">November 1990</time>Super Mario World</li>
	<li><time datetime="1992-10">October 1992</time>Super Mario Land: 6 <br>Golden Coins</li>
	<li><time datetime="1995-08">August 1995</time>Super Mario World 2: <br>Yoshi's Island</li>
	<li><time datetime="1996-06">June 1996</time>Super Mario 64</li>
	<li><time datetime="2002-07">July 2002</time>Super Mario Sunshine</li>
	<li><time datetime="2006-05">May 2006</time>New Super Mario Bros.</li>
	<li><time datetime="2007-11">November 2007</time>Super Mario Galaxy</li>
	<li><time datetime="2009-11">November 2009</time>New Super Mario Bros. Wii</li>
	<li><time datetime="2010-05">May 2010</time>Super Mario Galaxy 2</li>
	<li><time datetime="2011-11">November 2011</time>Super Mario 3D Land</li>
	<li><time datetime="2012-07">July 2012</time>New Super Mario Bros 2</li>
	<li><time datetime="2012-11">November 2012</time>New Super Mario Bros. U</li>
	<li><time datetime="2013-11">November 2013</time>Super Mario 3D World</li>
	<li><time datetime="2015-09">September 2015</time>Super Mario Maker</li>
	<li><time datetime="2016-12">December 2016</time>Super Mario Run</li>
	<li><time datetime="2017-10">October 2017</time>Super Mario Odyssey</li>
	<li><time datetime="2019-06">June 2019</time>Super Mario Maker 2</li>
	<li><time datetime="2021-02">February 2021</time>Super Mario 3D World + Bowser's Fury</li>
</ul>
              
            
!

CSS

              
                ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, 220px);
	justify-content: center;
}
li {
	grid-column: span 2;
	text-align: center;
	border-radius: 65px;
	color: #fff;
	font-weight: bold;
	font-size: 25px;
	line-height: 1.5em;
	font-family: sans-serif;
	position: relative;
	padding: 20px;
	border: 20px solid #0000;
	background: linear-gradient(#e71e07 0 0) content-box,
		linear-gradient(var(--c, #fcd000) 0 0) padding-box,
		linear-gradient(var(--d, 90deg), #0000 75%, #42b132 0) border-box;
}
li:nth-child(even) {
	grid-column-end: -1;
	--d: -90deg;
	--c: #009cda;
}
li:not(:last-child) {
	margin-bottom: -20px;
}
li:before,
li:after {
	content: "";
	display: block;
	height: 0.6em;
}

time {
	position: absolute;
	font-size: 0.65em;
	left: calc(100% + 50px);
	top: 50%;
	transform: translateY(-50%);
	white-space: nowrap;
}
li:nth-child(even) time {
	left: auto;
	color: #000;
	right: calc(100% + 50px);
}
time:before {
	content: "";
	position: absolute;
	height: 10px;
	top: calc(50% - 5px);
	right: calc(100% + 5px);
	width: 65px;
	background: repeating-linear-gradient(-90deg, #fcd000 0 5px, #0000 0 10px) 50%/100%
		2px no-repeat;
}
li:nth-child(even) time:before {
	right: auto;
	left: calc(100% + 5px);
	background: repeating-linear-gradient(90deg, #009cda 0 5px, #0000 0 10px) 50%/100%
		2px no-repeat;
}

h1,
p {
	display: none;
}

html {
	background: 
		radial-gradient(farthest-side at top right, #42b132 98%, #0000)
			calc(50% - 10px) 0/20px 20px no-repeat,
		radial-gradient(farthest-side at bottom right, #42b132 98%, #0000)
			calc(50% - 10px) 100%/20px 20px no-repeat,
		linear-gradient(90deg, #fcd000 50%, #009cda 0);
}

body {
	margin: 0;
}

              
            
!

JS

              
                
              
            
!
999px

Console