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 Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <div class="content clear">

	<div class="form-entry left">
		<h3><label for="description">Description</label></h3>
		<textarea id="description">Large block availability in central Bushwick with high ceilings and open floor plans. Unobstructed views of Manhattan and a 1 min walk to the Jefferson stop.</textarea>
		<i><span class="char-count"></span> characters</i>
	</div>

	<div class="placard-preview left">
		<h2>Live Preview</h2>
		
		<h3>Diamond</h3>
		<div class="placard diamond">
			<div class="placard-header clear">
				<div class="left">
					<div>455 Jefferson St</div>
					<div>The Jefferson</div>
				</div>
				<div class="right">
					<div>106,114sf Available</div>
					<div>Brooklyn, NY</div>
				</div>
			</div>
			<div class="placard-photo left"></div>
			<div class="placard-data clear">
				<ul class="left">
					<li>Built in 2017</li>
					<li>2,604 - 106,114sf</li>
					<li>8 Spaces Available Now</li>
				</ul>
				<p class="left"><span>Large block availability in central Bushwick with high ceilings and open floor plans. Unobstructed views of Manhattan and a 1 min walk to the Jefferson stop.</span</p>
			</div>
			<div class="placard-contacts clear">
				<img class="placard-logo left" src="https://images1.loopnet.com/i2/HHYZOfugZXKMTMqAdWD4JvEoMm-QmavW-p8jMBoDhAQ/105/image.jpg">
				<div class="placard-people left">
					<div class="placard-person person1 left clear">
						<div class="placard-person-photo left"></div>
						<div class="placard-person-name left">Joseph<br> Cirone</div>
					</div>
					<div class="placard-person person2 left clear">
						<div class="placard-person-photo left"></div>
						<div class="placard-person-name left">Patrick<br> Dugan</div>
					</div>
					<div class="placard-person person3 left clear">
						<div class="placard-person-photo left"></div>
						<div class="placard-person-name left">Remy<br> Liebersohn</div>
					</div>
				</div>
			</div>
		</div>
		
		<h3>Platinum</h3>
		<div class="placard clear platinum">
			<div class="placard-header clear">
				<div class="left">
					<div>455 Jefferson St</div>
					<div>The Jefferson</div>
				</div>
				<div class="right">
					<div>106,114sf Available</div>
					<div>Brooklyn, NY</div>
				</div>
			</div>
			<div class="placard-photo left"></div>
			<div class="placard-data clear">
				<ul>
					<li>Built in 2017</li>
					<li>2,604 - 106,114sf</li>
				</ul>
				<p><span>Large block availability in central Bushwick with high ceilings and open floor plans. Unobstructed views of Manhattan and a 1 min walk to the Jefferson stop.</span></p>
			</div>
			<div class="placard-contacts clear">
				<img class="placard-logo left" src="https://images1.loopnet.com/i2/HHYZOfugZXKMTMqAdWD4JvEoMm-QmavW-p8jMBoDhAQ/105/image.jpg">
				<div class="placard-people left">
					<div class="placard-person person1 left clear">
						<div class="placard-person-photo left"></div>
					</div>
					<div class="placard-person person2 left clear">
						<div class="placard-person-photo left"></div>
					</div>
					<div class="placard-person person3 left clear">
						<div class="placard-person-photo left"></div>
					</div>
				</div>
			</div>
		</div>

	</div>
	
</div>
              
            
!

CSS

              
                html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	margin: 0;
	padding: 60px;
}

.content {
	margin: 0 auto;
	width: 1130px;
}

.form-entry {
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 3px;
	margin: 0 40px 0 0;
	padding: 40px;
	position: fixed;
	width: 385px;
}
.form-entry h3 {
	font-size: 16px;
	font-weight: bold;
	margin: 0 0 12px;
	padding: 0;
}
.form-entry textarea {
	border: 1px solid #999;
	border-radius: 3px;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 16px;
	height: 120px;
	line-height: 1.3;
	padding: 10px 12px;
	width: 300px;
	-webkit-appearance: none;
}
.form-entry i {
	color: #666;
	display: inline-block;
	font-size: 14px;
	margin: 4px 0 0;
}

.placard-preview {
	margin-left: 440px;
}
.placard-preview h2 {
	font-size: 24px;
	font-weight: bold;
	margin-bottom: 20px;
}
.placard-preview h3 {
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 12px;
}

.placard {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 2px;
	box-shadow: 0 2px 8px rgba(0,0,0,.15);
	margin-bottom: 40px;
	position: relative;
	text-align: center;
	width: 680px;
}
.placard-header {
	border-bottom: 1px solid #eee;
	font-weight: bold;
	letter-spacing: .25px;
	line-height: 1.4;
	padding: 12px 20px 10px;
	text-align: left;
}
.placard-header .right {
	text-align: right;
}
.placard-photo {
	background: url(https://images1.loopnet.com/i2/_NXeiPahYDRleYop_2pYrBWmeJEu_MiZZsfCgxbx3XI/110/image.jpg) 50% 50%;
	background-size: cover;
	height: 370px;
	width: 100%;
	text-align: left;
}
.platinum .placard-photo {
	height: 330px;
	width: 330px;
}
.placard-data {
	padding: 16px 20px 12px;
	text-align: left;
}
.placard-data ul {
	border-right: 1px solid #ddd;
	padding: 0 20px 0 0;
	width: 33%;
}
.platinum .placard-data ul {
	border-right: none;
	padding: 0;
	width: auto;
}
.placard-data li {
	margin: 0 0 7px;
}
.placard-data li:last-of-type {
	margin-bottom: 0;
}
.placard-data p {
	border-left: 1px solid #ddd;
	left: -1px;
  display: -webkit-box;
	line-height: 23px;
	margin-bottom: -7px;
	overflow: hidden;
	top: -3px;
	padding: 0 0 0 20px;
	position: relative;
	width: 67%;
	-webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.platinum .placard-data p {
	border-left: none;
	left: 0;
	margin: 12px 0 -7px;
	top: 0;
	padding: 0;
	width: auto;
	-webkit-line-clamp: 5;
}
.placard-data p span.highlighted {
	background: #ffc;
}
.placard-contacts {
	display: inline-block;
	margin: 0 auto;
	padding: 4px 20px 16px;
	text-align: left;
}
.platinum .placard-contacts {
	bottom: 20px;
	display: block;
	margin: 0 0 0 350px;
	padding: 0;
	position: absolute;
	text-align: left;
}
.placard-logo {
	max-height: 54px;
	max-width: 160px;
}
.platinum .placard-logo {
	margin-bottom: 10px;
}
.placard-people {
	
}
.placard-person {
	margin: 0 0 0 20px;
}
.platinum .placard-person {
	margin: 0 10px 0 0;
}
.placard-person-photo {
	background-size: cover;
	border-radius: 3px;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
	height: 54px;
	margin-right: 10px;
	width: 54px;
}
.person1 .placard-person-photo {
	background-image: url(https://images1.loopnet.com/i2/mcaihgejZMcwchAqpAvdpbf8RQpa4BX2KCrK6Fn6r14/105/image.jpg);
}
.person2 .placard-person-photo {
	background-image: url(https://images1.loopnet.com/i2/lrCT7TKepAStmpx4R40NOi6MR1UK7UgFVgxwp75M4l8/105/image.jpg);
}
.person3 .placard-person-photo {
	background-image: url(https://images1.loopnet.com/i2/JzLvlVxcgtZHBPDjZJ2FsGFFMiWLZF_GsCQOSeLsmys/105/image.jpg);
}
.placard-person-name {
	line-height: 1.2;
	margin-top: 18px;
}


.left {
	float: left;
}
.right {
	float: right;
}
.clear {
	overflow: auto;
}
              
            
!

JS

              
                var startLen = $('.form-entry textarea').val().length;
$('.char-count').text(startLen);

$(".form-entry textarea").keyup(function() {
	var len = $(this).val().length;
  $(".placard-data p span").text($(".form-entry textarea").val());
	$('.char-count').text(len);
});

$(".form-entry textarea").focus(function() {
	$(".placard-data p span").addClass("highlighted");
});

$(".form-entry textarea").blur(function() {
	$(".placard-data p span").removeClass("highlighted");
});
              
            
!
999px

Console