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


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


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.


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.


                <div class="breadcrumb-container">
  <ul class="breadcrumb">
    <li><a><i class="icon-home"></i></a></li>
    <li class="divider"></li>
    <li><a>A Level Title</a></li>
    <li class="divider"></li>
    <li class="divider"></li>
    <li><a>B Level Title is a Little Longer B Level Title is a Little Longeris a Little Longer B Level Title is a Little Longer</a></li>
    <li class="divider"></li>
    <li class="divider"></li>
    <li><a>C Level Title is also pretty longC Level Title is also pretty longpretty longC Level Title is also pretty long</a></li>  
    <li class="divider"></li>
    <li class="divider"></li>
    <li><a>D Level Title is also pretty long</a></li>  

<div class="output"></div>


                // BREADCRUMBS
// -----------

.breadcrumb-container {
  margin: 10px;
  //overflow: hidden;

[class^="icon-"], [class*=" icon-"], [class$="-icon"] {
display: inline-block;
width: 14px;
height: 14px;
line-height: 14px;
background-image: url("/v2/img/console-sprite.png");
background-repeat: no-repeat;
margin-bottom: -2px;

.breadcrumb {
	padding: 0;
	margin: 0;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
//display: -webkit-flex;
display: flex;
display: box;
list-style: none;
	border: 1px solid #a4a4a4;
border-radius: 2px;
box-shadow: inset 0 1px 0 white;
	li {
text-shadow: 0 1px white;
		font-size: 12px;
		line-height: 10px;
white-space: no-wrap;
min-width: 15px;
		span {
			color: #909090;
			font-size: .9em;
			line-height: .9em;
			margin-right: 5px;
			padding-top: 1px;

		a {
			display: block;
			padding: 5px 7px 4px 10px;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;

			.icon-home {
				background: url("") no-repeat 0 -20px;
				width: 13px;
				height: 14px;


		.eye-icon {
			background: url("") no-repeat scroll -40px -20px transparent;
			display: inline-block;
			height: 10px;
			margin: 0 0 0 3px;
			position: relative;
			top: 1px;
			width: 17px;

		&.child-element {
			padding: 4px 10px 0;
			a {
				padding: 0;
			a, span, i {
				float: left;
			&:after {
				content: " ";
				display: block;
				clear: both;

		&:first-child a {
			padding: 3px 5px 3px 2px;
      margin-left: 5px;

		&:last-child a {
			background-color: #e5f1f6;
			box-shadow: 0 9px 12px -6px rgba(0, 0, 25, 0.15) inset, 0 1px 0 rgba(255, 255, 255, 0.2) inset;
			padding: 5px 10px 6px 10px;
		border-radius: 0 2px 2px 0;
			text-decoration: none;
			cursor: default;
			color: blue;
	.divider {
		padding: 0;
		color: #a4a4a4;
		height: 21px;
		line-height: 1em;
		width: 9px;
		background: url("") no-repeat -180px -2px;
		position: relative;
		left: 7px;
		margin-left: -7px;
	.active a {
		color: #ccc;




                (function() {
var _$root = $(".breadcrumb-container");		
var _getStubParts = function() {
			  var $stubs = _$root.find("li > a");
			  var stubInfo = [];
			  $stubs.each(function($stub) {
				    var obj = {};
				    obj.$stub = $stub;
				    obj.width = $stub.width();
			  return stubInfo;

		var _formatStubWidths = function() {
  			var rootWidth = _$root.width();
			  var breadcrumbWidth = _$root.find('.breadcrumb').width();
  $(".output").html("_formatStubWidths | " + breadcrumbWidth + " | " + rootWidth );
  			if(breadcrumbWidth <= rootWidth ) {
  			var stubInfo = _getStubParts();

  $(".output").html("need a recalc | " + breadcrumbWidth + " | " + rootWidth + " | " + stubInfo);