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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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="container">
  <!--the combined table-->
  <h1>combined</h1>
  <table class="combined">
    <tr>
      <th>Name</th>
      <th>Birth</th>
      <th>Country</th>
      <th>Job</th>
    </tr>
    <tr>
      <td>Amr bin Al'aas</td>
      <td>592</td>
      <td>Egypt</td>
      <td>Rashidun Arab Armilitary commander</td>
    </tr>
    <tr>
      <td>Ibrahim ibn Sinan</td>
      <td>908</td>
      <td>Baghdad</td>
      <td>Mathematician and astronomer in Baghdad</td>
    </tr>
    <tr>
      <td>Ahmed Zewail</td>
      <td>1946</td>
      <td>Egypt</td>
      <td>scientist, winner of the 1999 Nobel Prize in Chemistry</td>
    </tr>
    <tr>
      <td>Hassan Kamel</td>
      <td>1895</td>
      <td>Lebanon</td>
      <td>early electrical and electronics research engineer</td>
    </tr>
    <tr>
      <td>Abbas Al Akkad </td>
      <td>1889</td>
      <td>Egypt</td>
      <td>Writer and author</td>
    </tr>
    <tr>
      <td>Ahmed Mekky</td>
      <td>1980</td>
      <td>Egypt</td>
      <td>Actor, writer, director, rapper and singer</td>
    </tr>
    <tr>
      <td>Taha Hussein</td>
      <td>1889</td>
      <td>Egypt</td>
      <td>writer</td>
    </tr>
  </table>
  <!--the dark table-->
  <h1>dark</h1>
  <table class="dark">
    <tr>
      <th>Name</th>
      <th>Birth</th>
      <th>Country</th>
      <th>Job</th>
    </tr>
    <tr>
      <td>Amr bin Al'aas</td>
      <td>592</td>
      <td>Egypt</td>
      <td>Rashidun Arab Armilitary commander</td>
    </tr>
    <tr>
      <td>Ibrahim ibn Sinan</td>
      <td>908</td>
      <td>Baghdad</td>
      <td>Mathematician and astronomer in Baghdad</td>
    </tr>
    <tr>
      <td>Ahmed Zewail</td>
      <td>1946</td>
      <td>Egypt</td>
      <td>scientist, winner of the 1999 Nobel Prize in Chemistry</td>
    </tr>
    <tr>
      <td>Hassan Kamel</td>
      <td>1895</td>
      <td>Lebanon</td>
      <td>early electrical and electronics research engineer</td>
    </tr>
    <tr>
      <td>Abbas Al Akkad </td>
      <td>1889</td>
      <td>Egypt</td>
      <td>Writer and author</td>
    </tr>
    <tr>
      <td>Ahmed Mekky</td>
      <td>1980</td>
      <td>Egypt</td>
      <td>Actor, writer, director, rapper and singer</td>
    </tr>
    <tr>
      <td>Taha Hussein</td>
      <td>1889</td>
      <td>Egypt</td>
      <td>writer</td>
    </tr>
  </table>
  <!--the light table-->
  <h1>light</h1>
  <table class="light">
    <tr>
      <th>Name</th>
      <th>Birth</th>
      <th>Country</th>
      <th>Job</th>
    </tr>
    <tr>
      <td>Amr bin Al'aas</td>
      <td>592</td>
      <td>Egypt</td>
      <td>Rashidun Arab Armilitary commander</td>
    </tr>
    <tr>
      <td>Ibrahim ibn Sinan</td>
      <td>908</td>
      <td>Baghdad</td>
      <td>Mathematician and astronomer in Baghdad</td>
    </tr>
    <tr>
      <td>Ahmed Zewail</td>
      <td>1946</td>
      <td>Egypt</td>
      <td>scientist, winner of the 1999 Nobel Prize in Chemistry</td>
    </tr>
    <tr>
      <td>Hassan Kamel</td>
      <td>1895</td>
      <td>Lebanon</td>
      <td>early electrical and electronics research engineer</td>
    </tr>
    <tr>
      <td>Abbas Al Akkad </td>
      <td>1889</td>
      <td>Egypt</td>
      <td>Writer and author</td>
    </tr>
    <tr>
      <td>Ahmed Mekky</td>
      <td>1980</td>
      <td>Egypt</td>
      <td>Actor, writer, director, rapper and singer</td>
    </tr>
    <tr>
      <td>Taha Hussein</td>
      <td>1889</td>
      <td>Egypt</td>
      <td>writer</td>
    </tr>
  </table>
</div>

<!--my sign-->
<footer>
  Made with️❤️in <a href="https://codepen.io/ahmedbnabouelezz" target="_blank">Ahmed Abouelezz</a> 
</footer>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    background-color: #fca311;
    font-family: 'Open Sans', sans-serif;
}

table {
    width: 800px;
    margin: auto;
    margin-top: 50px;
    overflow: hidden;
    border-collapse: collapse;
    border-spacing: 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px 0px rgba(0, 0, 0, 0.1);
}

th, td {
    text-align: center;
    padding:20px 20px;
}

/*Combined*/
.combined th{
    background-color: #2b2d42;
    color: #8d99ae;
}

.combined td {
    background-color: #edf2f4;
    color: #2b2d42;
    border-bottom: 1px solid #e5e5e5;
}

/*Dark*/
.dark th{
    background-color: #14213d;
    color: #ffffff;
}

.dark td {
    background-color: #2b2d42;
    color: #edf2f4;

}

/*Light*/
.light th{
    background-color: #edf2f4;
    color: #e71d36;
    border-bottom: 2px solid #e5e5e5;
}

.light tr {
    background-color: #e5e5e5;
    color: #212529;

}

.light tr:nth-child(even) {
    background-color: #f2f2f2;
  }

/*my sign*/
footer {
    margin: 50px;
    color: #14213d;
    text-align: center;
}

footer a {
    text-decoration: none;
    color: #e71d36;
}

/*titles*/
h1 {
    color: #2b2d42;
    width: 200px;
    text-align: center;
    text-transform: capitalize;
    font-weight: bold;
    margin: 50px auto;
    border: 3px solid #2b2d42;
    border-radius: 10px;
}
              
            
!

JS

              
                
              
            
!
999px

Console