<div class="outer container">
            <!--Table Caption-->
                Data about the planets of our solar system (Planetary facts taken from <a
                    href="http://nssdc.gsfc.nasa.gov/planetary/factsheet/">Nasa's Planetary Fact Sheet - Metric</a>).
            <!--Col Group-->
                <col span="2">
                <col class="border-solid-black">
                <col span="9">
            <!--Table Header-->
                    <td colspan="2"></td>
                    <td>Mass (10<sup>24</sup>kg)</td>
                    <td>Diameter (km)</td>
                    <td>ensity (kg/m<sup>3</sup>)</td>
                    <td>Gravity (m/s<sup>2</sup>)</td>
                    <td>Length of day (hours)</td>
                    <td>Distance from Sun (10<sup>6</sup>km)</td>
                    <td>Mean temperature (°C)</td>
                    <td>Number of moons</td>
            <!--table Body-->
                <!--Table row-->
                    <th rowspan="4" colspan="2" scope="rowgroup">Terestrial planets</th>
                    <th>Closest to the Sun</th>
                <!--Table Row-->
                    <th scope="row">Venus</th>
                    <th> 5243</th>
                <!--Table Row-->
                    <th scope="row">Earth</th>
                    <th>Our world</th>
                <!--Table Row-->
                    <th scope="row">Mars</th>
                    <th>The red planet</th>
                <!--Table Row-->
                    <th rowspan="4" scope="rowgroup">Jovian Planets</th>
                    <th rowspan="2" scope="rowgroup">Gas giants</th>
                    <th scope="row">Jupiter</th>
                    <th>The largest planet</th>
                <!--Table Row-->
                    <th scope="row">Saturn</th>
                <!--Table Row-->
                    <th rowspan="2" scope="rowgroup">Ice Giants</th>
                    <th colspan="row">Uranus</th>
                    <th> 8.7 </th>
                <!--Table Row-->
                    <th colspan="row">Neptune</th>
                <!--Table Row-->
                    <th colspan="2" scope="row">Dwarf planets</th>
                    <th colspan="row">Pluto</th>
                    <th>Declassified as a planet in 2006, but this <a
html {
    font-family: sans-serif;
  table {
    border-collapse: collapse;
    border: 2px solid rgb(200,200,200);
    letter-spacing: 1px;
    font-size: 0.8rem;
  .border-solid-black {
    border: 2px solid black;

  td, th {
    border: 1px solid rgb(190,190,190);
    padding: 10px 20px;
  th {
    background-color: rgb(235,235,235);
  td {
    text-align: center;
  tr:nth-child(even) td {
    background-color: rgb(250,250,250);
  tr:nth-child(odd) td {
    background-color: rgb(245,245,245);
  caption {
    padding: 10px;

Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.