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

              
                <h3>Flex, not working</h3>
<div class="wrapper -flex">
	<span class="text-truncate">Analyst</span>
	<span class="text-center"> · </span>
	<span class="text-truncate">ACP Development Account (Analyst)</span>
</div>

<h3>Table, still nope</h3>
<table class="wrapper -table">
	<tr>
		<td class="text-truncate">Analyst</td>
		<td class="text-center"> · </td>
		<td class="text-truncate">ACP Development Account (Analyst)</td>
	</tr>
</table>

<h3>Grid, all good</h3>
<div class="wrapper">
	<span class="text-truncate">Analyst</span>
	<span class="text-center"> · </span>
	<span class="text-truncate">ACP Development Account (Analyst)</span>
</div>

<div class="wrapper">
	<span class="text-truncate">ACP Development Account (Analyst)</span>
	<span class="text-center"> · </span>
	<span class="text-truncate">> $3000</span>
</div>

<div class="wrapper">
	<span class="text-truncate">Analyst</span>
	<span class="text-center"> · </span>
	<span class="text-truncate">> $3000</span>
</div>

<div class="wrapper">
	<span class="text-truncate">ACP Development Account (Analyst)</span>
	<span class="text-center"> · </span>
	<span class="text-truncate">ACP Development Account (Analyst)</span>
</div>

              
            
!

CSS

              
                *
	box-sizing: border-box

body
	font-family: sans-serif

.wrapper
	background-color: lightgray
	display: grid
	grid-template-columns: auto 20px auto
	margin: 20px
	max-width: 290px
	padding: 8px
	width: fit-content

	&.-flex
		background-color: red
		display: flex
	
	&.-table
		background-color: red
		display: table
		table-layout: fixed
		width: 290px

.text-truncate
	text-overflow: ellipsis
	overflow: hidden
	white-space: nowrap

.text-center
	text-align: center
	width: 20px
              
            
!

JS

              
                
              
            
!
999px

Console