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 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 class="main">
		<h1>The Evolution of the Bicycle</h1>
		<p class="left">In 1817 Baron von Drais invented a walking machine that would help him get around the royal gardens faster.</p>
		<p class="left">The device know as the Draisienne (or "hobby horse") was made of wood, and propelled by pushing your feed on the ground in a gliding movement.</p>
		<p class="left">.It was not seen a suitable for any place other than a well maintained pathway. </p>
		<p class="left clear">In 1865, the velocipede (meaning "fast foot") attached pedals to the front wheel, but its wooden structure made it extremely uncomfortable.</p>

		<div class="plain clear">1870 the first all-metal machine appeared. The pedals were attached directly to the front wheel. 1870 the first all-metal machine appeared. The pedals were attached directly to the front wheel. 1870 the first all-metal machine appeared. The pedals were attached directly to the front wheel.</div>

		<p class="right clear">In 1870 the first all-metal machine appeared. The pedals were attached directly to the front wheel. </p>
		<p class="right clear"> Solid rubber tires and the long spokes of the large front wheel provided a much smoother ride than its predecessor.</p>
	</div>
              
            
!

CSS

              
                .main {
	width: 750px;
  font-family: Arial, Verdana, sans-serif;
	color: #665544;
	border: 2px solid red;
	background-color: green;
	overflow: hidden;
	}
h1 {
  color: black;
}
p {
	width: 230px;
	margin: 5px;
	padding: 5px;
	background-color: #efefef;
	}
.clear {
	clear: both;}
.left {
	float: left;}
.right {
	float:right;
  }
.plain {
  overflow:hidden;
	background-color: grey;
	/*delete this border property and check the code again*/
	border: 5px solid black; 
	}
              
            
!

JS

              
                
              
            
!
999px

Console