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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!-- <h1>Table Style Examples</h1> -->
<table id="table--pizza">
  <tr>
    <th>Number of Pizzas</th>
    <td>1</td>
    <td>2</td>
    <td>3</td>
    <td>4</td>
  </tr>
  <tr>
    <tr>
      <th>Cost ($)</th>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
    </tr>
</table>

<table id="table--timedist">
  <tr>
    <th>Time</th>
    <th>Distance</th>
  </tr>
  <tr>
    <td>0</td>
    <td></td>
  </tr>
  <tr>
    <td>1</td>
    <td></td>
  </tr>
  <tr>
    <td>2</td>
    <td></td>
  </tr>
  <tr>
    <td>3</td>
    <td></td>
  </tr>
</table>

<table id="table--boiling">
  <tr>
    <th colspan="3">Melting and Boiling Points of some Ionic Compunds</th>
  </tr>
  <tr>
    <th>Compound</th>
    <th>Melting Point (&deg;C)</th>
    <th>Boiling Point (&deg;C)</th>
  </tr>
  <tr>
    <td>Nal</td>
    <td>660</td>
    <td>1304</td>
  </tr>
  <tr>
    <td>KBr</td>
    <td>734</td>
    <td>1435</td>
  </tr>
  <tr>
    <td>NaBr</td>
    <td>747</td>
    <td>1390</td>
  </tr>
  <tr>
    <td>CaCl<sub>2</sub></td>
    <td>782</td>
    <td>>1600</td>
  </tr>
  <tr>
    <td>NaCl</td>
    <td>801</td>
    <td>1413</td>
  </tr>
  <tr>
    <td>MgO</td>
    <td>2852</td>
    <td>3600</td>
  </tr>
</table>

<table id="table--propizza">
  <!-- https://habitat.inkling.com/project/sn_17ec/files/s9ml/clo04/reader_9.html -->
  <tr>
    <th>Number of Pizzas</th>
    <td>1</td>
    <td>2</td>
    <td>3</td>
    <td>4</td>
  </tr>
  <tr>
    <th>Cost ($)</th>
    <td>7</td>
    <td>14</td>
    <td>21</td>
    <td>28</td>
  </tr>
  <tr>
    <th>Cost per pizza ($)</th>
    <td>7</td>
    <td>7</td>
    <td>7</td>
    <td>7</td>
  </tr>
</table>
            
          
!
            
              html {
  color: #222;
  font-size: 1.125em;
  font-family: sans-serif;
  line-height: 1.4;
  background-color: #d9d9d9;
  min-width: 477px;

}

body {
	width: 90%;
}

h1 {
	margin-left: 10px;
}

/*  PIZZA TABLE  */

#table--pizza {
	border-collapse: collapse;
	margin: 20px 10px;
	width: 600px;
}

#table--pizza th {
	text-align: right;
	background-color: #234A5A;
	padding: 0px 20px;
	color: white;
	min-width: 54px;
	height: 54px;
	vertical-align: middle;
	border: 2px solid #234a5a;
	border-bottom: 2px solid white;
}

#table--pizza tr:last-child th {
	border-bottom: 2px solid #234a5a;
}

#table--pizza td {
	margin: 0 auto;
	border: 2px solid #234A5A;
	min-width: 100px;
	vertical-align: middle;
	text-align: center;
	background-color: white;
	border-spacing: 0px;
}

/*  TIME/DISTANCE TABLE  */

#table--timedist {
	border-collapse: collapse;
	margin: 20px 10px 10px 10px;
}

#table--timedist th {
	text-align: center;
	background-color: #007192;
	padding: 0px 20px;
	color: white;
	min-width: 120px;
	height: 54px;
	vertical-align: middle;
	border: 2px solid #007192;
	border-right: 2px solid white;
}

#table--timedist th:last-child {
	border-right: 2px solid #007192;
}

#table--timedist td {
	margin: 0 auto;
	border: 2px solid #007192;
	min-width: 120px;
	height: 54px;
	vertical-align: middle;
	text-align: center;
	background-color: white;
	border-spacing: 0px;
}

/*  MELTING POINT  */

#table--boiling {
	border-collapse: collapse;
	margin: 20px 10px 10px 10px;
	line-height: 2;
	width: 600px;
}

#table--boiling th {
	text-align: center;
	padding: 0px 20px;
	color: #93005A;
	background-color: white;
	/*min-width: 120px;
	height: 60px;*/
	vertical-align: middle;
	border: 2px solid #93005A;
}

#table--boiling tr:first-child th{
	color: white;
	background-color: #93005A;
}

#table--boiling td {
	margin: 0 auto;
	border: 2px solid #93005A;
	/*min-width: 120px;
	height: 70px;*/
	vertical-align: middle;
	text-align: center;
	background-color: white;
	border-spacing: 0px;
}

/*  PROPORTIONAL PIZZA TABLE  */

#table--propizza {
	border-collapse: collapse;
	margin: 20px 10px 20px 10px;
	line-height: 2;
	width: 600px;
}

#table--propizza th {
	text-align: right;
	background-color: #648078;
	padding: 0px 10px 0px 20px;
	color: white;
	/*  min-width: 180px;
	height: 120px;*/
	vertical-align: middle;
	border: 2px solid #648078;
	border-bottom: 2px solid white;
	width: 250px;
}

#table--propizza tr:last-child th {
	border-bottom: 2px solid #648078;
}

#table--propizza td {
	margin: 0 auto;
	padding: 0px 20px;
	border: 2px solid #648078;
	/*  min-width: 120px;*/
	vertical-align: middle;
	text-align: center;
	background-color: white;
	border-spacing: 0px;
	width: 76px;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console