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

+ 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

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

              
                <div id="featureRight">

<p>My goal is to create a box with a 50% width, border and drop shadow. The box should be fully responsive and include an image on the right that uses 50% of the width and is flush top, right and bottom. On the left half I would like to have text that is aligned right.

  
  Lorem ipsum dolor sit amet, delectus salutandi quaerendum vis ut, ex quo case solet elaboraret. Delenit officiis pri ut. Ea cum docendi detraxit interesset, an usu volutpat expetendis, feugait vivendum concludaturque his cu. Appareat platonem similique vix no. Ius saepe quidam ea, aperiri vivendo noluisse eu pro. Adversarium signiferumque mea no, at everti mentitum delicata per. Congue ocurreret mel cu, ut consul omittam definiebas per, ad aperiri qualisque sed.

Ea usu agam oratio pertinacia. Pro cu exerci nusquam deserunt, sed id abhorreant consequuntur. Nonumes vivendum antiopam has id, mel ad error mentitum. Cu sea denique inimicus, eos quas facilisi in, eos et enim commune.</p>

<img src="http://www.theimagesource.com/testImages/WeddingCoverage.jpg"/>

</div>
              
            
!

CSS

              
                * {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  display: block;
}

#featureRight {
	width:50%;
	margin:0 auto;
	border:solid thick #d21c60;
	box-shadow:20px 20px 20px #999999;
  overflow:hidden;
  padding:1em;
}

#featureRight img{
	width:50%;
  float:left;
}

#featureRight p { 
	width:50%;
  text-align:right;
  float:left;
  padding:0 1em;
}
              
            
!

JS

              
                
              
            
!
999px

Console