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="periodic-table-wrapper">
  <table class="periodic-table" lang="sv">
    <caption>Periodiska systemet</caption>
    <thead>
      <tr>
        <th aria-hidden="true"></th>
        <th scope="col"><span aria-label="Grupp 1">1</span></th>
        <th scope="col"><span aria-label="Grupp 2">2</span></th>
        <th scope="col"><span aria-label="Grupp 3">3</span></th>
        <th scope="col"><span aria-label="Grupp 4">4</span></th>
        <th scope="col"><span aria-label="Grupp 5">5</span></th>
        <th scope="col"><span aria-label="Grupp 6">6</span></th>
        <th scope="col"><span aria-label="Grupp 7">7</span></th>
        <th scope="col"><span aria-label="Grupp 8">8</span></th>
        <th scope="col"><span aria-label="Grupp 9">9</span></th>
        <th scope="col"><span aria-label="Grupp 10">10</span></th>
        <th scope="col"><span aria-label="Grupp 11">11</span></th>
        <th scope="col"><span aria-label="Grupp 12">12</span></th>
        <th scope="col"><span aria-label="Grupp 13">13</span></th>
        <th scope="col"><span aria-label="Grupp 14">14</span></th>
        <th scope="col"><span aria-label="Grupp 15">15</span></th>
        <th scope="col"><span aria-label="Grupp 16">16</span></th>
        <th scope="col"><span aria-label="Grupp 17">17</span></th>
        <th scope="col"><span aria-label="Grupp 18">18</span></th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th scope="row"><span aria-label="Period 1">1</span></th>
        <td>
          <button type="button">
            <div class="nonmetals">
              <abbr title="Väte">H</abbr>
              <small aria-label="Atomnummer: 1">1</small>
            </div>
          </button>
        </td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td>
          <button type="button">
            <div class="noble-gases">
              <abbr title="Helium">He</abbr>
              <small aria-label="Atomnummer: 2">2</small>
            </div>
          </button>
        </td>
      </tr>
      <tr>
        <th scope="row"><span aria-label="Period 2">2</span></th>
        <td>
          <button type="button">
            <div class="alkali-metals">
              <abbr title="Litium">Li</abbr>
              <small aria-label="Atomnummer: 3">3</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="alkaline-metals">
              <abbr title="Beryllium">Be</abbr>
              <small aria-label="Atomnummer: 4">4</small>
            </div>
          </button>
        </td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td>
          <button type="button">
            <div class="metalloids">
              <abbr title="Bor">B</abbr>
              <small aria-label="Atomnummer: 5">5</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="nonmetals">
              <abbr title="Kol">C</abbr>
              <small aria-label="Atomnummer: 6">6</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="nonmetals">
              <abbr title="Kväve">N</abbr>
              <small aria-label="Atomnummer: 7">7</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="nonmetals">
              <abbr title="Syre">O</abbr>
              <small aria-label="Atomnummer: 8">8</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="halogens">
              <abbr title="Flour">F</abbr>
              <small aria-label="Atomnummer: 9">9</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="noble-gases">
              <abbr title="Neon">Ne</abbr>
              <small aria-label="Atomnummer: 10">10</small>
            </div>
          </button>
        </td>
      </tr>
      <tr>
        <th scope="row"><span aria-label="Period 3">3</span></th>
        <td>
          <button type="button">
            <div class="alkali-metals">
              <abbr title="Natrium">Na</abbr>
              <small aria-label="Atomnummer: 11">11</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="alkaline-metals">
              <abbr title="Magnesium">Mg</abbr>
              <small aria-label="Atomnummer: 12">12</small>
            </div>
          </button>
        </td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td>
          <button type="button">
            <div class="other-metals">
              <abbr title="Aluminium">Al</abbr>
              <small aria-label="Atomnummer: 13">13</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="metalloids">
              <abbr title="Kisel">Si</abbr>
              <small aria-label="Atomnummer: 14">14</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="nonmetals">
              <abbr title="Fosfor">P</abbr>
              <small aria-label="Atomnummer: 15">15</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="nonmetals">
              <abbr title="Svavel">S</abbr>
              <small aria-label="Atomnummer: 16">16</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="halogens">
              <abbr title="Klor">Cl</abbr>
              <small aria-label="Atomnummer: 17">17</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="noble-gases">
              <abbr title="Argon">Ar</abbr>
              <small aria-label="Atomnummer: 18">18</small>
            </div>
          </button>
        </td>
      </tr>
      <tr>
        <th scope="row"><span aria-label="Period 4">4</span></th>
        <td>
          <button type="button">
            <div class="alkali-metals">
              <abbr title="Kalium">K</abbr>
              <small aria-label="Atomnummer: 19">19</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="alkaline-metals">
              <abbr title="Kalcium">Ca</abbr>
              <small aria-label="Atomnummer: 20">20</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Skandium">Sc</abbr>
              <small aria-label="Atomnummer: 21">21</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Titan">Ti</abbr>
              <small aria-label="Atomnummer: 22">22</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Vanadin">V</abbr>
              <small aria-label="Atomnummer: 23">23</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Krom">Cr</abbr>
              <small aria-label="Atomnummer: 24">24</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Mangan">Mn</abbr>
              <small aria-label="Atomnummer: 25">25</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Järn">Fe</abbr>
              <small aria-label="Atomnummer: 26">26</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Kobolt">Co</abbr>
              <small aria-label="Atomnummer: 27">27</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Nickel">Ni</abbr>
              <small aria-label="Atomnummer: 28">28</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Koppar">Cu</abbr>
              <small aria-label="Atomnummer: 29">29</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Zink">Zn</abbr>
              <small aria-label="Atomnummer: 30">30</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="other-metals">
              <abbr title="Gallium">Ga</abbr>
              <small aria-label="Atomnummer: 31">31</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="metalloids">
              <abbr title="Germanium">Ge</abbr>
              <small aria-label="Atomnummer: 32">32</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="metalloids">
              <abbr title="Arsenik">As</abbr>
              <small aria-label="Atomnummer: 33">33</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="nonmetals">
              <abbr title="Selen">Se</abbr>
              <small aria-label="Atomnummer: 34">34</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="halogens">
              <abbr title="Brom">Br</abbr>
              <small aria-label="Atomnummer: 35">35</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="noble-gases">
              <abbr title="Krypton">Kr</abbr>
              <small aria-label="Atomnummer: 36">36</small>
            </div>
          </button>
        </td>
      </tr>
      <tr>
        <th scope="row"><span aria-label="Period 5">5</span></th>
        <td>
          <button type="button">
            <div class="alkali-metals">
              <abbr title="Rubidium">Rb</abbr>
              <small aria-label="Atomnummer: 37">37</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="alkaline-metals">
              <abbr title="Strontium">Sr</abbr>
              <small aria-label="Atomnummer: 38">38</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Yttrium">Y</abbr>
              <small aria-label="Atomnummer: 39">39</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Zirkonium">Zr</abbr>
              <small aria-label="Atomnummer: 40">40</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Niob">Nb</abbr>
              <small aria-label="Atomnummer: 41">41</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Molybden">Mo</abbr>
              <small aria-label="Atomnummer: 42">42</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Teknetium">Tc</abbr>
              <small aria-label="Atomnummer: 43">43</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Rutenium">Ru</abbr>
              <small aria-label="Atomnummer: 44">44</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Rodium">Rh</abbr>
              <small aria-label="Atomnummer: 45">45</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Palladium">Pd</abbr>
              <small aria-label="Atomnummer: 46">46</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Silver">Ag</abbr>
              <small aria-label="Atomnummer: 47">47</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Kadmium">Cd</abbr>
              <small aria-label="Atomnummer: 48">48</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="other-metals">
              <abbr title="Indium">In</abbr>
              <small aria-label="Atomnummer: 49">49</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="other-metals">
              <abbr title="Tenn">Sn</abbr>
              <small aria-label="Atomnummer: 50">50</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="metalloids">
              <abbr title="Antimon">Sb</abbr>
              <small aria-label="Atomnummer: 51">51</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="metalloids">
              <abbr title="Tellur">Te</abbr>
              <small aria-label="Atomnummer: 52">52</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="halogens">
              <abbr title="Jod">I</abbr>
              <small aria-label="Atomnummer: 53">53</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="noble-gases">
              <abbr title="Xenon">Xe</abbr>
              <small aria-label="Atomnummer: 54">54</small>
            </div>
          </button>
        </td>
      </tr>
      <tr>
        <th scope="row"><span aria-label="Period 6">6</span></th>
        <td>
          <button type="button">
            <div class="alkali-metals">
              <abbr title="Cesium">Cs</abbr>
              <small aria-label="Atomnummer: 55">55</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="alkaline-metals">
              <abbr title="Barium">Ba</abbr>
              <small aria-label="Atomnummer: 56">56</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Lutetium">Lu</abbr>
              <small aria-label="Atomnummer: 71">71</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Hafnium">Hf</abbr>
              <small aria-label="Atomnummer: 72">72</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Tantal">Ta</abbr>
              <small aria-label="Atomnummer: 73">73</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Volfram">W</abbr>
              <small aria-label="Atomnummer: 74">74</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Rhenium">Re</abbr>
              <small aria-label="Atomnummer: 75">75</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Osmium">Os</abbr>
              <small aria-label="Atomnummer: 76">76</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Iridium">Ir</abbr>
              <small aria-label="Atomnummer: 77">77</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Platina">Pt</abbr>
              <small aria-label="Atomnummer: 78">78</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Guld">Au</abbr>
              <small aria-label="Atomnummer: 79">79</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Kvicksilver">Hg</abbr>
              <small aria-label="Atomnummer: 80">80</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="other-metals">
              <abbr title="Tallium">Tl</abbr>
              <small aria-label="Atomnummer: 81">81</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="other-metals">
              <abbr title="Bly">Pb</abbr>
              <small aria-label="Atomnummer: 82">82</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="other-metals">
              <abbr title="Vismut">Bi</abbr>
              <small aria-label="Atomnummer: 83">83</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="metalloids">
              <abbr title="Polonium">Po</abbr>
              <small aria-label="Atomnummer: 84">84</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="halogens">
              <abbr title="Astat">At</abbr>
              <small aria-label="Atomnummer: 85">85</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="noble-gases">
              <abbr title="Radon">Rn</abbr>
              <small aria-label="Atomnummer: 86">86</small>
            </div>
          </button>
        </td>
      </tr>
      <tr>
        <th scope="row"><span aria-label="Period 7">7</span></th>
        <td>
          <button type="button">
            <div class="alkali-metals">
              <abbr title="Francium">Fr</abbr>
              <small aria-label="Atomnummer: 87">87</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="alkaline-metals">
              <abbr title="Radium">Ra</abbr>
              <small aria-label="Atomnummer: 88">88</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Lawrencium">Lr</abbr>
              <small aria-label="Atomnummer: 103">103</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Rutherfordium">Rf</abbr>
              <small aria-label="Atomnummer: 104">104</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Dubnium">Db</abbr>
              <small aria-label="Atomnummer: 105">105</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Seaborgium">Sg</abbr>
              <small aria-label="Atomnummer: 106">106</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Bohrium">Bh</abbr>
              <small aria-label="Atomnummer: 107">107</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Hassium">Hs</abbr>
              <small aria-label="Atomnummer: 108">108</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Meitnerium">Mt</abbr>
              <small aria-label="Atomnummer: 109">109</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Darmstadtium">Ds</abbr>
              <small aria-label="Atomnummer: 110">110</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Röntgenium">Rg</abbr>
              <small aria-label="Atomnummer: 111">111</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="transition-metals">
              <abbr title="Copernicum">Cn</abbr>
              <small aria-label="Atomnummer: 112">112</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="unknown-elements">
              <abbr title="Nihonium">Nh</abbr>
              <small aria-label="Atomnummer: 113">113</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="unknown-elements">
              <abbr title="Flerovium">Fl</abbr>
              <small aria-label="Atomnummer: 114">114</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="unknown-elements">
              <abbr title="Moscovium">Mc</abbr>
              <small aria-label="Atomnummer: 115">115</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="unknown-elements">
              <abbr title="Livermorium">Lv</abbr>
              <small aria-label="Atomnummer: 116">116</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="unknown-elements">
              <abbr title="Tenness">Ts</abbr>
              <small aria-label="Atomnummer: 117">117</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="unknown-elements">
              <abbr title="Oganesson">Og</abbr>
              <small aria-label="Atomnummer: 118">118</small>
            </div>
          </button>
        </td>
      </tr>
    </tbody>
    <tbody>
      <tr>
        <th scope="row"><span aria-label="Period 6">6</span></th>
        <td></td>
        <td></td>
        <td>
          <button type="button">
            <div class="lanthanoids">
              <abbr title="Lantan">La</abbr>
              <small aria-label="Atomnummer: 57">57</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="lanthanoids">
              <abbr title="Cerium">Ce</abbr>
              <small aria-label="Atomnummer: 58">58</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="lanthanoids">
              <abbr title="Praseodym">Pr</abbr>
              <small aria-label="Atomnummer: 59">59</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="lanthanoids">
              <abbr title="Neodym">Nd</abbr>
              <small aria-label="Atomnummer: 60">60</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="lanthanoids">
              <abbr title="Prometium">Pm</abbr>
              <small aria-label="Atomnummer: 61">61</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="lanthanoids">
              <abbr title="Samarium">Sm</abbr>
              <small aria-label="Atomnummer: 62">62</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="lanthanoids">
              <abbr title="Europium">Eu</abbr>
              <small aria-label="Atomnummer: 63">63</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="lanthanoids">
              <abbr title="Gadolinium">Gd</abbr>
              <small aria-label="Atomnummer: 64">64</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="lanthanoids">
              <abbr title="Terbium">Tb</abbr>
              <small aria-label="Atomnummer: 65">65</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="lanthanoids">
              <abbr title="Dysprosium">Dy</abbr>
              <small aria-label="Atomnummer: 66">66</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="lanthanoids">
              <abbr title="Holmium">Ho</abbr>
              <small aria-label="Atomnummer: 67">67</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="lanthanoids">
              <abbr title="Erbium">Er</abbr>
              <small aria-label="Atomnummer: 68">68</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="lanthanoids">
              <abbr title="Tulium">Tm</abbr>
              <small aria-label="Atomnummer: 69">69</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="lanthanoids">
              <abbr title="Ytterbium">Yb</abbr>
              <small aria-label="Atomnummer: 70">70</small>
            </div>
          </button>
        </td>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
      </tr>
      <tr>
        <th aria-hidden="true"><span aria-label="Period 7">7</span></th>
        <td aria-hidden="true"></td>
        <td aria-hidden="true"></td>
        <td>
          <button type="button">
            <div class="actinoids">
              <abbr title="Aktinium">Ac</abbr>
              <small aria-label="Atomnummer: 89">89</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="actinoids">
              <abbr title="Torium">Th</abbr>
              <small aria-label="Atomnummer: 90">90</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="actinoids">
              <abbr title="Protaktinium">Pa</abbr>
              <small aria-label="Atomnummer: 91">91</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="actinoids">
              <abbr title="Uran">U</abbr>
              <small aria-label="Atomnummer: 92">92</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="actinoids">
              <abbr title="Neptunium">Np</abbr>
              <small aria-label="Atomnummer: 93">93</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="actinoids">
              <abbr title="Plutonium">Pu</abbr>
              <small aria-label="Atomnummer: 94">94</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="actinoids">
              <abbr title="Americium">Am</abbr>
              <small aria-label="Atomnummer: 95">95</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="actinoids">
              <abbr title="Curium">Cm</abbr>
              <small aria-label="Atomnummer: 96">96</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="actinoids">
              <abbr title="Berkelium">Bk</abbr>
              <small aria-label="Atomnummer: 97">97</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="actinoids">
              <abbr title="Californium">Cf</abbr>
              <small aria-label="Atomnummer: 98">98</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="actinoids">
              <abbr title="Einsteinium">Es</abbr>
              <small aria-label="Atomnummer: 99">99</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="actinoids">
              <abbr title="Fermium">Fm</abbr>
              <small aria-label="Atomnummer: 100">100</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="actinoids">
              <abbr title="Mendelevium">Md</abbr>
              <small aria-label="Atomnummer: 101">101</small>
            </div>
          </button>
        </td>
        <td>
          <button type="button">
            <div class="actinoids">
              <abbr title="Nobelium">No</abbr>
              <small aria-label="Atomnummer: 102">102</small>
            </div>
          </button>
        </td>
      </tr>
    </tbody>
  </table>
</div>

<ul class="legend">
  <li><span class="nonmetals"></span>Icke-metaller</li>
  <li><span class="alkali-metals"></span>Alkalimetaller</li>
  <li><span class="alkaline-metals"></span>Alkalisk jordartsmetall</li>
  <li><span class="other-metals"></span>Övriga metaller</li>
  <li><span class="transition-metals"></span>Övergångsmetaller</li>
  <li><span class="lanthanoids"></span>Lantanoider</li>
  <li><span class="actinoids"></span>Aktinoider</li>
  <li><span class="metalloids"></span>Halvmetaller</li>
  <li><span class="halogens"></span>Halogener</li>
  <li><span class="noble-gases"></span>Ädelgaser</li>
  <li><span class="unknown-elements"></span>Okända egenskaper</li>
</ul>

<div class="element-data-dialog">
  <table class="element-data-table">
    <caption>Väte</caption>
    <tr>
      <th>Atomnummer</th>
      <td>1</td>
    </tr>
    <tr>
      <th>Atommassa</th>
      <td>1,00794 u</td>
    </tr>
    <tr>
      <th>Densitet</th>
      <td>0,000084 g/cm³</td>
    </tr>
    <tr>
      <th>Smältpunkt</th>
      <td>-259,1 °C</td>
    </tr>
    <tr>
      <th>Kokpunkt</th>
      <td>-252,9 °C</td>
    </tr>
    <tr>
      <th>Elektronegativitet</th>
      <td>2,1</td>
    </tr>
    <tr>
      <th>Radioaktiv</th>
      <td>Nej</td>
    </tr>
    <tr>
      <th>Grupp</th>
      <td>1</td>
    </tr>
    <tr>
      <th>Period</th>
      <td>1</td>
    </tr>
    <tr>
      <th>Elektronkonfiguration</th>
      <td>1</td>
    </tr>
  </table>
</div>
              
            
!

CSS

              
                body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

button {
  border: 0;
  background-color: transparent;
  margin: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

button:hover,
button:focus,
button:active {
  filter: brightness(1.1);
}

table {
  border-collapse: collapse;
  border-spacing: 00;
}

table, th, td {
  border: 0;
}

th, td {
  padding: 0;
}

caption, th {
  font-weight: bold;
  text-align: center;
}

/**
 * Periodic table
 */
.periodic-table-wrapper {
  overflow-x: auto;
  background-repeat: no-repeat;
  background-image: radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.1), transparent);
  background-position: 100% 0;
  background-size: 1em 100%;
}

.periodic-table th {
  padding: 0.5rem 1rem;
}

/* Group spacing */
.periodic-table tbody td:nth-of-type(3) button {
  padding-left: 1rem;
}

.periodic-table tbody:nth-of-type(2) tr:first-of-type button {
  margin-top: 1rem;
}

.periodic-table div {
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  position: relative;
  margin: 0.1rem;
}

.periodic-table small {
  position: absolute;
  top: 0.1rem;
  left: 0.2rem;
  font-size: 0.8rem;
}

.periodic-table abbr {
  text-decoration: none;
  font-weight: bold;
}

/**
 * Element type colors
 */
.nonmetals {
  background-color: #b39ddb ;
}

.alkali-metals {
  background-color: #ffb74d ;
}

.alkaline-metals {
  background-color: #ffab91 ;
}

.other-metals {
  background-color: #ffca28 ;
}

.transition-metals {
  background-color: #4dd0e1 ;
}

.lanthanoids {
  background-color: #d4e157 ;
}

.actinoids {
  background-color: #9ccc65 ;
}

.metalloids {
  background-color: #81c784 ;
}

.halogens {
  background-color: #f48fb1 ;
}

.noble-gases {
  background-color: #64b5f6 ;
}

.unknown-elements {
  background-color: #90a4ae ;
}

/**
 * Legend list
 */
.legend {
  list-style-type: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  max-width: 55rem;
}

.legend li {
  display: flex;
  padding: 0.25rem 0;
}

.legend li span {
  border: 1px solid;
  margin-right: 0.25rem;
  height: 1em;
  width: 1em;
}

/**
 * Element data table
 */
.element-data-dialog {
  display: inline-block;
  padding: 1rem 1.5rem;
  background-color: #fff;
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.6);
}

.element-data-table caption {
  text-align: left;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.element-data-table th {
  text-align: left;
  padding-right: 1rem;
}
              
            
!

JS

              
                
              
            
!
999px

Console