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

              
                
		<ul>
			<li>Item 1</li>
			<li>Item 2</li>
			<li>Item 3</li>
			<li>Item 4</li>
			<li>Item 5</li>
			<li>Item 6</li>
			<li>Item 7</li>
			<li>Item 8</li>
			<li>Item 9</li>
			<li>Item 10</li>
			<li>Item 11</li>
			<li>Item 12</li>
			<li>Item 13</li>
			<li>Item 14</li>
			<li>Item 15</li>
			<li>Item 16</li>
			<li>Item 17</li>
			<li>Item 18</li>
			<li>Item 19</li>
			<li>Item 20</li>
			<li>Item 21</li>
			<li>Item 22</li>
			<li>Item 23</li>
			<li>Item 24</li>
			<li>Item 25</li>
			<li>Item 26</li>
			<li>Item 27</li>
			<li>Item 28</li>
			<li>Item 29</li>
			<li>Item 30</li>
			<li>Item 31</li>
			<li>Item 32</li>
			<li>Item 33</li>
			<li>Item 34</li>
			<li>Item 35</li>
		</ul>
              
            
!

CSS

              
                			ul {
				display: -ms-grid;
				-ms-grid-columns: 1fr 1fr 1fr 1fr 1fr;
				-ms-grid-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
				display: grid;
				grid-gap: 1em;
				padding: 1em;
				white-space: nowrap;
				list-style: none;
				grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
			}
			ul li {
				box-shadow: 0px 0px 4px 5px #ddd098 inset;
				text-align: center;
			}
			ul li {
				box-shadow: 0px 0px 4px 5px #ddd098 inset;
				text-align: center;
			}
			ul li:nth-child(-n+35) {
				-ms-grid-row: 7;
			}
			ul li:nth-child(-n+30) {
				-ms-grid-row: 6;
			}
			ul li:nth-child(-n+25) {
				-ms-grid-row: 5;
			}
			ul li:nth-child(-n+20) {
				-ms-grid-row: 4;
			}
			ul li:nth-child(-n+15) {
				-ms-grid-row: 3;
			}
			ul li:nth-child(-n+10) {
				-ms-grid-row: 2;
			}
			ul li:nth-child(-n+5) {
				-ms-grid-row: 1;
			}
			ul li:nth-child(1),
			ul li:nth-child(6),
			ul li:nth-child(11),
			ul li:nth-child(16),
			ul li:nth-child(21),
			ul li:nth-child(26),
			ul li:nth-child(31) {
				-ms-grid-column: 1;
			}
			ul li:nth-child(2),
			ul li:nth-child(7),
			ul li:nth-child(12),
			ul li:nth-child(17),
			ul li:nth-child(22),
			ul li:nth-child(27),
			ul li:nth-child(32) {
				-ms-grid-column: 2;
			}
			ul li:nth-child(3),
			ul li:nth-child(8),
			ul li:nth-child(13),
			ul li:nth-child(18),
			ul li:nth-child(23),
			ul li:nth-child(28),
			ul li:nth-child(33) {
				-ms-grid-column: 3;
			}
			ul li:nth-child(4),
			ul li:nth-child(9),
			ul li:nth-child(14),
			ul li:nth-child(19),
			ul li:nth-child(24),
			ul li:nth-child(29),
			ul li:nth-child(34) {
				-ms-grid-column: 4;
			}
			ul li:nth-child(5),
			ul li:nth-child(10),
			ul li:nth-child(15),
			ul li:nth-child(20),
			ul li:nth-child(25),
			ul li:nth-child(30),
			ul li:nth-child(35) {
				-ms-grid-column: 5;
			}
              
            
!

JS

              
                
              
            
!
999px

Console