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

              
                <h1>Testing joined images (circles) in fluid layout</h1>
<div class="line">
		<div class="row cf">
				<div class="block fl">
						<p><span class="circle first"></span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper risus consequat mauris dapibus, ut aliquet odio posuere. Quisque enim quam, semper quis dui sed, pellentesque consectetur augue. Nam convallis diam lacus, vel posuere lacus adipiscing et. Nulla venenatis dui quis laoreet blandit. Phasellus pulvinar lectus vel turpis varius, et ultrices tortor eleifend. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce blandit tellus nec semper gravida. Nunc faucibus enim non dolor eleifend commodo</p>
				</div>
				<div class="block fr">
						<p><span class="circle"></span>Quisque enim quam, semper quis dui sed, pellentesque consectetur augue. Nam convallis diam lacus, vel posuere lacus adipiscing et. Nulla venenatis dui quis laoreet blandit. Phasellus pulvinar lectus vel turpis varius, et ultrices tortor eleifend. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce blandit tellus nec semper gravida. Nunc faucibus enim non dolor eleifend commodo</p>
				</div>
				<div class="block fl">
						<p><span class="circle"></span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper risus consequat mauris dapibus, ut aliquet odio posuere. Quisque enim quam, semper quis dui sed, pellentesque consectetur augue. Nam convallis diam lacus, vel posuere lacus adipiscing et. Nulla venenatis dui quis laoreet blandit. Phasellus pulvinar lectus vel turpis varius, et ultrices tortor eleifend. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.</p>
				</div>
				<div class="block fr">
						<p><span class="circle last"></span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper risus consequat mauris dapibus, ut aliquet odio posuere. Quisque enim quam, semper quis dui sed, pellentesque consectetur augue. Nam convallis diam lacus, vel posuere lacus adipiscing et. Nulla venenatis dui quis laoreet blandit. Phasellus pulvinar lectus vel turpis varius, et ultrices tortor eleifend. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce blandit tellus nec semper gravida. Nunc faucibus enim non dolor eleifend commodo</p>
				</div>
		</div>
</div>

              
            
!

CSS

              
                /* apply a natural box layout model to all elements */
html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
html, body {
	margin:0;
	padding:0
}
body {
	background:#000;
	color:#fff;
}
.cf:before, .cf:after {
	content: " ";
	display: table;
}
.cf:after { clear: both; }
.cf { *zoom: 1;
}
p {
	margin:0 0 1em;
	padding:10px;
}
.line {
	position:relative;
	width:80%;
	margin:auto;
	overflow:hidden;
}
.line:after {
	content:" ";
	width:1px;
	background:#fff;
	position:absolute;
	z-index:1;
	top:0;
	bottom:0;
	left:50%;
}
.fl { float:left; }
.fr { float:right; }
.block {
	width:50%;
	position:relative;
	padding:0 50px 0 0;
	clear:both
}
.fr { padding:0 0 0 50px; }
.circle {
	width:50px;
	height:50px;
	border-radius:50%;
	background:red;
	float:right;
	margin-right:-85px;
	margin-top:1em;
	position:relative;
	z-index:2;
}
.fr .circle {
	float:left;
	margin-left:-85px
}
.circle.first:before,.circle.last:before{
	content:" ";
	position:absolute;
	width:4px;
	left:50%;
	margin:0 0 0 -2px;
	background:#000;
	bottom:100%;
	height:99em;
	z-index:3;
	background:#000;
}
.circle.last:before{
	bottom:auto;
	top:100%;	
}

              
            
!

JS

              
                
              
            
!
999px

Console