Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

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

              
                <!-- v10 Data Table -->
<div class="bx--data-table-container " data-table>
	<div class="bx--data-table-header">
		<h4 class="bx--data-table-header__title">Table title</h4>
		<p class="bx--data-table-header__description"></p>
	</div>
	<!-- Toolbar Content -->
	<section class="bx--table-toolbar ">
		<!-- Batch actions -->
		<div class="bx--batch-actions" aria-label="Table Action Bar">
			<div class="bx--action-list">
				<button data-event="action-bar-cancel" class="bx--btn bx--btn--primary bx--batch-summary__cancel">Cancel</button>
			</div>
			<div class="bx--batch-summary">
				<p class="bx--batch-summary__para">
					<span data-items-selected>3</span> items selected
				</p>
			</div>
		</div>

		<!-- Persistent Search -->

		<div class="bx--toolbar-content">
			<!--  Default hidden search -->
			<!--  Disabled toolbar hidden search -->
			<!-- disabled toolbar overflow menu -->
			<button class="bx--btn bx--btn--sm bx--btn--primary">
             Primary Button 
            <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--btn__icon" width="20" height="20" viewBox="0 0 32 32" aria-hidden="true"><path d="M17 15V7h-2v8H7v2h8v8h2v-8h8v-2h-8z"></path></svg>
          </button>
		</div>
	</section>
	<!-- End Toolbar Content -->

	<!-- Table -->
	<table class="bx--data-table     bx--data-table--sort ">
		<thead>
			<tr>
				<th class="bx--table-expand">
					<!-- checkbox th -->
					<!-- sortable th  -->
					<span class="bx--table-header-label"></span>
				</th>
				<th class="bx--table-column-checkbox">
					<!-- checkbox th -->
					<input data-event="select-all" id="bx--checkbox-20" class="bx--checkbox" type="checkbox" value="green" name="checkbox-20">
					<label for="bx--checkbox-20" class="bx--checkbox-label" aria-label="Label name"></label>
				</th>
				<th>
					<!-- checkbox th -->
					<!-- sortable th  -->
					<button class="bx--table-sort" data-event="sort" title="Name">
                  <span class="bx--table-header-label">Name</span>
                  <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--table-sort__icon" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M12.3 9.3l-3.8 3.8V1h-1v12.1L3.7 9.3 3 10l5 5 5-5z"></path></svg>
                  <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--table-sort__icon-unsorted" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M13.8 10.3L12 12.1V2h-1v10.1l-1.8-1.8-.7.7 3 3 3-3zM4.5 2l-3 3 .7.7L4 3.9V14h1V3.9l1.8 1.8.7-.7z"></path></svg>
                </button>
					<!-- no sort th -->
				</th>
				<th>
					<!-- checkbox th -->
					<!-- sortable th  -->
					<button class="bx--table-sort" data-event="sort" title="Protocol">
                  <span class="bx--table-header-label">Protocol</span>
                  <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--table-sort__icon" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M12.3 9.3l-3.8 3.8V1h-1v12.1L3.7 9.3 3 10l5 5 5-5z"></path></svg>
                  <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--table-sort__icon-unsorted" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M13.8 10.3L12 12.1V2h-1v10.1l-1.8-1.8-.7.7 3 3 3-3zM4.5 2l-3 3 .7.7L4 3.9V14h1V3.9l1.8 1.8.7-.7z"></path></svg>
                </button>
					<!-- no sort th -->
				</th>
				<th>
					<!-- checkbox th -->
					<!-- sortable th  -->
					<button class="bx--table-sort" data-event="sort" title="Ports">
                  <span class="bx--table-header-label">Ports</span>
                  <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--table-sort__icon" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M12.3 9.3l-3.8 3.8V1h-1v12.1L3.7 9.3 3 10l5 5 5-5z"></path></svg>
                  <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--table-sort__icon-unsorted" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M13.8 10.3L12 12.1V2h-1v10.1l-1.8-1.8-.7.7 3 3 3-3zM4.5 2l-3 3 .7.7L4 3.9V14h1V3.9l1.8 1.8.7-.7z"></path></svg>
                </button>
					<!-- no sort th -->
				</th>
				<th>
					<!-- checkbox th -->
					<!-- sortable th  -->
					<button class="bx--table-sort" data-event="sort" title="Rule">
                  <span class="bx--table-header-label">Rule</span>
                  <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--table-sort__icon" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M12.3 9.3l-3.8 3.8V1h-1v12.1L3.7 9.3 3 10l5 5 5-5z"></path></svg>
                  <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--table-sort__icon-unsorted" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M13.8 10.3L12 12.1V2h-1v10.1l-1.8-1.8-.7.7 3 3 3-3zM4.5 2l-3 3 .7.7L4 3.9V14h1V3.9l1.8 1.8.7-.7z"></path></svg>
                </button>
					<!-- no sort th -->
				</th>
				<th>
					<!-- checkbox th -->
					<!-- sortable th  -->
					<button class="bx--table-sort" data-event="sort" title="Attached Groups">
                  <span class="bx--table-header-label">Attached Groups</span>
                  <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--table-sort__icon" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M12.3 9.3l-3.8 3.8V1h-1v12.1L3.7 9.3 3 10l5 5 5-5z"></path></svg>
                  <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--table-sort__icon-unsorted" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M13.8 10.3L12 12.1V2h-1v10.1l-1.8-1.8-.7.7 3 3 3-3zM4.5 2l-3 3 .7.7L4 3.9V14h1V3.9l1.8 1.8.7-.7z"></path></svg>
                </button>
					<!-- no sort th -->
				</th>
				<th>
					<!-- checkbox th -->
					<!-- sortable th  -->
					<button class="bx--table-sort" data-event="sort" title="Status">
                  <span class="bx--table-header-label">Status</span>
                  <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--table-sort__icon" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M12.3 9.3l-3.8 3.8V1h-1v12.1L3.7 9.3 3 10l5 5 5-5z"></path></svg>
                  <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--table-sort__icon-unsorted" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M13.8 10.3L12 12.1V2h-1v10.1l-1.8-1.8-.7.7 3 3 3-3zM4.5 2l-3 3 .7.7L4 3.9V14h1V3.9l1.8 1.8.7-.7z"></path></svg>
                </button>
					<!-- no sort th -->
				</th>
			</tr>
		</thead>
		<tbody>
			<tr class="bx--parent-row" data-parent-row>
				<!-- expand icon td -->
				<td class="bx--table-expand" data-event="expand">
					<button class="bx--table-expand__button">
                  <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--table-expand__svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M11 8l-5 5-.7-.7L9.6 8 5.3 3.7 6 3z"></path></svg>
                </button>
				</td>
				<!-- checkbox td -->
				<!-- expand icon td -->
				<td class="bx--table-column-checkbox">
					<input data-event="select" id="bx--checkbox-13" class="bx--checkbox" type="checkbox" value="green" name="checkbox-13">
					<label for="bx--checkbox-13" class="bx--checkbox-label" aria-label="Label name"></label>
				</td>
				<!-- inline action td's -->
				<!-- expand icon td -->
				<td>
					<!-- truncated new markup -->
					Load Balancer 1
				</td>
				<!-- expand icon td -->
				<td>
					<!-- truncated new markup -->
					HTTP
				</td>
				<!-- expand icon td -->
				<td>
					<!-- truncated new markup -->
					80
				</td>
				<!-- expand icon td -->
				<td>
					<!-- truncated new markup -->
					Round Robin
				</td>
				<!-- expand icon td -->
				<td>
					<!-- truncated new markup -->
					Maureen&#x27;s VM Groups
				</td>
				<!-- expand icon td -->
				<td>
					<!-- truncated new markup -->
					Active
				</td>
			</tr>
			<!-- Expandable child row -->
			<tr class="bx--expandable-row bx--expandable-row--hidden" data-child-row>
				<td colspan="8">
					<div class="bx--child-row-inner-container">
						<p>A variety of content types can live here. Be sure to follow Carbon design guidelines for spacing and alignment.</p>

					</div>
				</td>
			</tr>
			<tr class="bx--parent-row" data-parent-row>
				<!-- expand icon td -->
				<td class="bx--table-expand" data-event="expand">
					<button class="bx--table-expand__button">
                  <svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--table-expand__svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M11 8l-5 5-.7-.7L9.6 8 5.3 3.7 6 3z"></path></svg>
                </button>
				</td>
				<!-- checkbox td -->
				<!-- expand icon td -->
				<td class="bx--table-column-checkbox">
					<input data-event="select" id="bx--checkbox-12" class="bx--checkbox" type="checkbox" value="green" name="checkbox-12">
					<label for="bx--checkbox-12" class="bx--checkbox-label" aria-label="Label name"></label>
				</td>
				<!-- inline action td's -->
				<!-- expand icon td -->
				<td>
					<!-- truncated new markup -->
					Load Balancer 1
				</td>
				<!-- expand icon td -->
				<td>
					<!-- truncated new markup -->
					HTTP
				</td>
				<!-- expand icon td -->
				<td>
					<!-- truncated new markup -->
					80
				</td>
				<!-- expand icon td -->
				<td>
					<!-- truncated new markup -->
					Round Robin
				</td>
				<!-- expand icon td -->
				<td>
					<!-- truncated new markup -->
					Maureen&#x27;s VM Groups
				</td>
				<!-- expand icon td -->
				<td>
					<!-- truncated new markup -->
					Active
				</td>
			</tr>
			<!-- Expandable child row -->
			<tr class="bx--expandable-row bx--expandable-row--hidden" data-child-row>
				<td colspan="8">
					<div class="bx--child-row-inner-container">
						<p>A variety of content types can live here. Be sure to follow Carbon design guidelines for spacing and alignment.</p>

					</div>
				</td>
			</tr>
		</tbody>
	</table>

</div>
<!-- Pagination -->
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console