Pen Settings



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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.


<p><strong>Prettier embeds for your YouTubes</strong> with easy to use options like fetch the highest resolution preview image available from YouTube, advanced customization of embed options, and optional <a href="" target="_blank">FitVids</a> support.</p>

	<div class="wrapper">
    <h2>Pretty :)</h2>
    <h2>Not Pretty :(</h2>

    <div class="video-container">
			<div id="test-video"></div>

		<div class="video-container not-pretty">
			<iframe width="560" height="315" src="//" frameborder="0" allowfullscreen></iframe>

<br style="clear: both;" />

<a class="btn" href="" target="_blank">GitHub</a>



                @import url(,700);

body {
		text-align: center;
     font: 400 16px/1.5em 'Lato', sans-serif;
     background-color: #f0f0f0;
     padding: 1em 20px;
     box-sizing: border-box;
.wrapper {
  width: 80%;
  margin: 0 auto;
  display: block;

a {
  color: #333;
  transition: all 300ms;
  &:hover { color: #08f; }

.video-container {
  width: 49%;
  float: left;

.video-container + .video-container { margin-left: 2%; }

h1 { text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }

h2 {
  float: left;
  width: 50%;
  box-sizing: border-box;
  text-align: center;
  margin: 1em auto 5px;
  font: 400 20px/1.2em 'Lato', sans-serif;

p {
  max-width: 520px;
  width: 100%;
  margin: 1em auto;

.btn {
  display: inline-block;
  clear: both;
  position: relative;
  top: 2em;
  font-size: 20px;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid #666;
  box-sizing: border-box;
  padding: 10px 30px;
  transition: all 300ms;
  color: #666;
  font-weight: 700;
  &:hover {
    color: #111;
    border-color: #111;
    box-shadow: 0 0 10px rgba(32, 32, 32, 0.4);
    text-shadow: 0 1px 0 rgb(255, 255, 255);



			$(document).ready(function() {

					videoID: 'Cbti19KM3wk',
					useFitVids: true,

					playerControls: true,
					playerInfo: false