cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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. 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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation


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.

              <!--Week 1.3 exercise learning about floats -->
<!doctype html>
		<link rel="stylesheet" type="text/css" href="floats.css">

			&lt;header&gt; #ccc

		<section id="left">
			&lt;section&gt; #666

		<section id="middle"> 
			&lt;section&gt; #888

		<section id="right">
			&lt;section&gt; #666

		<section id="full">
				&lt;aside&gt; #fff
			&lt;section&gt; #eee
			<div id="division">
				&lt;div&gt; #6ea3da

			&lt;footer&gt; #ccc
 * Float Layout Activity 


* {
  box-sizing: border-box;
  text-align: center;

body {


header {

	background: #ccc;
	padding: 20px;
	margin-bottom: 20px;
	color: #333;

section {

#left, #right, #middle {
  color: #ffffff;
  padding: 20px;
  margin-bottom: 20px;
  width: 33.33%;

#left {
  background-color: #666;


#middle {
  background-color: #888;
  float: left;


#right {

  background-color: #666;
  float: right;

#full {
  background-color: #eee;
  clear: both;
  margin-bottom: 20px;
  padding-top: 20px;
/*Look at adding overflow:auto if there is anything is bigger than
 the parent let it overflow- allows all content to fit inside it */

#division {
  background-color: #6ea3da;
  padding: 20px;
  margin-top: 20px;

aside {
  background-color: #fff;
  float: left;
  /*padding: 5px 30px 40px 30px;*/
  padding: 40px;
  height: 150px;
  margin: 0 0 0 30px;
  border: 1px solid #eee;


footer {
  background-color: #ccc;
  clear: both;
  padding: 20px;

Loading ..................