123

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <ul class="masonry">
	<li>
		<img src='https://images.unsplash.com/photo-1504674900247-0877df9cc836?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max&ixid=eyJhcHBfaWQiOjE0NTg5fQ' alt=''>
		<h3>Photo by Lily Banse</h3>
		<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent finibus erat sed sapien eleifend, sit amet blandit quam feugiat. Vivamus elementum fermentum eros, et placerat purus feugiat sit amet. Nunc pharetra sapien vitae eleifend viverra. Sed tempus tempus purus, et posuere nibh tristique eget.</p>
	</li>
	<li>
		<img src='https://images.unsplash.com/photo-1478145046317-39f10e56b5e9?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max&ixid=eyJhcHBfaWQiOjE0NTg5fQ' alt=''>
		<h3>Photo by Brooke Lark</h3>
		<p>Donec a diam molestie, feugiat felis at, cursus neque. Phasellus accumsan leo a massa cursus, ac interdum tortor molestie.</p>
	</li>
	<li>
		<img src='https://images.unsplash.com/photo-1527424726923-52e678bdbc3e?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max&ixid=eyJhcHBfaWQiOjE0NTg5fQ' alt=''>
		<h3>Photo by Rob Wingate</h3>
		<p>Phasellus feugiat augue vehicula elit tincidunt facilisis. Aenean sit amet quam et urna tristique fermentum. In hac habitasse platea dictumst.</p>
	</li>
	<li>
		<img src='https://images.unsplash.com/photo-1518717758536-85ae29035b6d?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max&ixid=eyJhcHBfaWQiOjE0NTg5fQ' alt=''>
		<h3>Photo by James Barker</h3>
		<p>Nunc sodales ut velit a cursus. Vestibulum mauris dui, aliquet nec dignissim nec, efficitur quis metus. Integer iaculis vehicula erat, sit amet scelerisque quam ultricies eget.</p>
	</li>
	<li>
		<img src='https://images.unsplash.com/photo-1470219556762-1771e7f9427d?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max&ixid=eyJhcHBfaWQiOjE0NTg5fQ' alt=''>
		<h3>Photo by Jonathan Riley</h3>
		<p>Sed leo felis, efficitur non malesuada id, gravida vel arcu. Aenean diam leo, scelerisque pellentesque turpis non, ultrices elementum eros. Proin justo metus, vulputate et semper eget, aliquet ut tortor. Sed condimentum ullamcorper sagittis. Ut ultricies elementum tincidunt. Aliquam erat volutpat.</p>
	</li>
	<li>
		<img src='https://images.unsplash.com/photo-1502899576159-f224dc2349fa?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max&ixid=eyJhcHBfaWQiOjE0NTg5fQ' alt=''>
		<h3>Photo by Yenshi Kangrang</h3>
		<p>Ut viverra tortor vitae metus efficitur venenatis. Integer sed molestie neque, vel laoreet dui. Phasellus ante massa, bibendum et felis nec, fringilla tristique nibh. Aenean nec felis convallis, finibus quam et, auctor sem.</p>
	</li>
	<li>
		<img src='https://images.unsplash.com/photo-1510797215324-95aa89f43c33?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max&ixid=eyJhcHBfaWQiOjE0NTg5fQ' alt=''>
		<h3>Photo by Justin Kauffman</h3>
		<p>Nunc rutrum odio at enim tincidunt, non viverra sapien eleifend. Nulla facilisi. Quisque ultrices eleifend cursus. Morbi ut tristique elit. In vehicula massa vitae urna pulvinar mattis. Aliquam erat volutpat. Nullam aliquam ac massa vitae scelerisque. Maecenas volutpat purus nec tortor rutrum faucibus. Curabitur auctor augue at ligula congue ullamcorper.</p>
	</li>
	<li>
		<img src='https://images.unsplash.com/photo-1526749837599-b4eba9fd855e?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max&ixid=eyJhcHBfaWQiOjE0NTg5fQ' alt=''>
		<h3>Photo by redcharlie</h3>
		<p>Maecenas quis elementum purus, id placerat metus. Maecenas non vestibulum diam, in semper tellus.</p>
	</li>
</ul>
            
          
!
            
              body {
	line-height: 1.5;
}

.masonry {
	list-style-type: none;
	padding: 0;
	margin: 3rem auto;
	width: 80%;
	columns: 15rem;
	column-gap: 2rem;
}

.masonry li {
	margin-bottom: 5rem;
	break-inside: avoid;
}

img {
	max-width: 100%;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console