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

              
                      <div class="portfolio-summary">
				<div class="portfolio__item">
					<h6>Item One</h6>
					<img src="http://placehold.it/100x100/fc970b/ffffff&text=Cover+Art" alt="portfolio item cover art" />
					<div class="tag">
						<span title="HTML 5" class="tag__html tooltip"></span>
						<span title="CSS 3" class="tag__css tooltip"></span>
						<span title="JavaScript" class="tag__js tooltip"></span>
					</div>
				</div><!-- /.portfolio__item -->

				<div class="portfolio__item">
					<h6>Item Two</h6>
					<img src="http://placehold.it/100x100/a4c5f9/ffffff&text=Cover+Art" alt="portfolio item cover art" />
					<div class="tag">
						<span title="CSS 3" class="tag__css tooltip"></span>
						<span title="Sass" class="tag__sass tooltip"></span>
						<span title="Less" class="tag__less tooltip"></span>
					</div>
				</div><!-- /.portfolio__item -->

				<div class="portfolio__item">
					<h6>Item Three</h6>
					<img src="http://placehold.it/100x100/b21c03/ffffff&text=Cover+Art" alt="portfolio item cover art" />
					<div class="tag">
						<span title="Android" class="tag__android tooltip"></span>
					</div>
				</div><!-- /.portfolio__item -->

				<div class="portfolio__item">
					<h6>Item Four</h6>
					<img src="http://placehold.it/100x100/03b214/ffffff&text=Cover+Art" alt="portfolio item cover art" />
					<div class="tag">
						<span title="HTML 5" class="tag__html tooltip"></span>
						<span title="CSS 3" class="tag__css tooltip"></span>
						<span title="JavaScript" class="tag__js tooltip"></span>
						<span title="WordPress"class="tag__wp tooltip"></span>
					</div>
				</div><!-- /.portfolio__item -->
			</div><!-- / .portfolio-summary -->
              
            
!

CSS

              
                * {
	box-sizing:border-box;
}

.tag__html {
	display: inline-block;
	height:.75em;
	width: .75em;
	border-radius: 50%;
	border: .1em solid #e44f26;
	background: -webkit-linear-gradient(left, #e44f26 50%, #f1662a 50%);
	content:"HTML 5";
}

.tag__css {
	display: inline-block;
	height:.75em;
	width: .75em;
	border-radius: 50%;
	border: .1em solid #1572b6;
	background: -webkit-linear-gradient(left, #1572b6 50%, #33a9dc 50%);
	content:"CSS 3";
}
.tag__sass {
	display: inline-block;
	height:.75em;
	width: .75em;
	border-radius: 50%;
	border: .1em solid #ab5c83;
	background: -webkit-linear-gradient(left, #ab5c83 50%, #c6538c 50%);
	content:"Sass";
}
.tag__less {
	display: inline-block;
	height:.75em;
	width: .75em;
	border-radius: 50%;
	border: .1em solid #1c2b42;
	background: -webkit-linear-gradient(left, #1c2b42 50%, #1d365d 50%);
	content:"Android";
}

.tag__js {
	display: inline-block;
	height:.75em;
	width: .75em;
	border-radius: 50%;
	border: .1em solid #e5a228;
	background: -webkit-linear-gradient(left, #e5a228 50%, #f1bf26 50%);
	content:"JavaScript";
}

.tag__wp {
	display: inline-block;
	height:.75em;
	width: .75em;
	border-radius: 50%;
	border: .1em solid #8186a5;
	background: -webkit-linear-gradient(left, #8186a5 50%, #838CC7 50%);
	content:"WordPress";
}
.tag__android {
	display: inline-block;
	height:.75em;
	width: .75em;
	border-radius: 50%;
	border: .1em solid #10951a;
	background: -webkit-linear-gradient(left, #10951a 50%, #03b210 50%);
	content:"Android";
}



.portfolio__item {
	display:inline-block;
	position: relative;
	min-width: 75px;
    width: calc(100%);
	max-width:150px;
	min-height:75px;
    height:100%;
	max-height:150px;
	margin:.5em;
}
.portfolio__item > h6 {
	position: relative;
	width:100%;
	text-align: center;
	margin-bottom:-24.986px;
	z-index: 999;
	color:#fff;
}
.portfolio__item > img {
	display: block;
	width: 100%;
	height:auto;
	z-index: 001;
}
.portfolio__item > .tag {
	position: relative;
	width:100%;
	background: rgba(0, 0, 0, 0.5);
	z-index:999;
	padding:0 .25em;
	left:0;
	margin-top: -1.15em;
}
              
            
!

JS

              
                
              
            
!
999px

Console