cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

              h1 Multi-line lists with item separators (CSS)

h2 Pipe spacing is variable:
	li.food Blueberry donut
	li.food Raspberry donut pudding
	li.food Banana pie pudding donut
	li.food Grape
	li.food Blackberry sundae

h2 Hacky, but pipe spacing is fixed:
	div.food Blueberry donut
	span.separator[aria-hidden] |
	div.food Raspberry donut pudding
	span.separator[aria-hidden] |
	div.food Banana pie pudding donut

	| (I mean, it's all pretty hacky honestly…)

              // This stuff doesn't matter...
	display: flex
	height: 100%
	width: 100%

	margin: auto
	width: 60%

h1, h2
	margin: 1em 0 0.5em

ul, li
	margin: 0
	padding: 0
	list-style: none

	font-size: 0.6em
	margin-top: 10em
	text-align: right

// This stuff matters more!
	display: flex
	flex-wrap: wrap
	margin-left: -12px
	overflow: hidden

		flex-grow: 1
		margin: 6px 0
		margin-left: 12px
		position: relative
		text-align: center

			content: '|'
			position: absolute
			right: -6px
			top: 0
			transform: translate(50%, 1px)

	text-align: center
	position: relative

	.food, .separator
		display: inline-block

		padding: 0 10px

	@for $i from 1 through 3
			// `em`s aren't perfect for this, so we add a font-specific fudge factor.
			height: calc(#{4 - $i} * 1.1em - 100%) // Bleh…
			overflow: hidden
			position: absolute
			transform: translate(-3px, 1px)  // Bleh…

Loading ..................