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="testimonial">
	<span class="open quote">“</span>
	<div class="image">
		<div class="clip"></div>
		<img src="https://placehold.co/100">
	</div>
	<p>This is some testimonial text for this month's CodePen challenge! This is some testimonial text for this month's CodePen challenge!</p>
	<div class="source">		
		<span>Testimonial Source</span>
	</div>
	<span class="close quote">”</span>
</div>
              
            
!

CSS

              
                * {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	font-family: "Montserrat", sans-serif;
}

body {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	overflow: hidden;
}

.testimonial {
	width: 500px;
	max-width: 100%;
	background: #ffca52;
	padding: 4em 3em;
	display: flex;
	align-items: flex-end;
	position: relative;
	box-shadow: 0 2px 2px hsl(0deg 0% 0%/.075), 0 3px 3px hsl(0deg 0% 0%/.075), 0 5px 5px hsl(0deg 0% 0%/.075), 0 9px 9px hsl(0deg 0% 0%/.075), 0 17px 17px hsl(0deg 0% 0%/.075);
	position: relative;
	&:after {
		content: "";
		border: 8px solid navy;
		border-radius: 50px;
		width: 85%;
		height: 120%;
		position: absolute;
		z-index: -1;
		left: 1.5em;
		top: -2em;
	}
	&:before {
		content: "";
		position: absolute;
		bottom: -6.2em;
		left: 5em;
		z-index: 1;		
		width: 0;
		height: 0;
		border-style: solid;
		border-width: 70px 100px 0 0;
		border-color: navy transparent transparent transparent;
	}
	.quote {
		position: absolute;
		font-size: 3em;
		width: 40px;
		height: 40px;
		background: navy;
		color: #fff;
		text-align: center;
		line-height: 1.25;
		&.open {
			top: 0;
			left: 0;
		}
		&.close {
			bottom: 0;
			right: 0;
		}
	}
	p {
		width: 60%;
		display: inline-block;
		font-weight: bold;
		font-size: 1.25em;
	}
	.source {
		width: 40%;
		height: 100%;
		position: relative;		
		span {			
			display: inline-block;
			font-weight: bold;
			font-size: 1.15em;
			position: relative;
			margin-left: 1rem;
			text-align: right;			
			&:before {
				content: "\2014";
				display: inline;
				margin-right: 5px;
			}
		}		
	}
	.image {
		transform: rotate(-5deg);
		position: absolute;
		top: 0.5em;
		right: 1.5em;
		img {
			border: 10px solid #fff;
			margin: 0;
			padding: 0;
		}
		.clip {
			border: 2px solid #222;
			border-right: none;
			height: 75px;
			width: 20px;
			position: absolute;
			right: 30%;
			top: -15%;
			border-radius: 25px;
			&:before {
				content: "";
				position: absolute;
				top: -1px;
				right: 0;
				height: 10px;
				width: 16px;
				border: 2px solid #222;
				border-bottom: none;
				border-top-left-radius: 25px;
				border-top-right-radius: 25px;
				z-index: 99;					
			}
			&:after {
				content: "";
				position: absolute;
				bottom: -1px;
				right: 0;
				height: 40px;
				width: 16px;
				border: 2px solid #222;
				border-top: none;
				border-bottom-left-radius: 25px;
				border-bottom-right-radius: 25px;
				z-index: 99;
			}
		}
	}
}


              
            
!

JS

              
                
              
            
!
999px

Console