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

              
                <h2><a href="https://ux.stackexchange.com/questions/138581">Visualize Date gaps and dates overlapping</a></h2>

<table>
  <colgroup><col><col><col><col><col><col><col><col><col></colgroup><tbody>
  <tr>
    <th>Part</th><th>Code</th>
    <th>Start</th><th>Drop</th>
    <th>From</th><th>Till</th>
    <th>days valid</th><th>delta</th>
    <th>remark</th>    
  </tr>
  <tr>
    <td>7.088.C</td><td >+3RE</td>
    <td >E33712</td><td>VZE4266</td>
    <td >28.09.2020</td><td class="gap-till">28.09.2020</td>
    <td class="foo">0</td><td> </td><td> </td>    
  </tr>
  <tr>
    <td>7.088.E</td><td>+3RE</td>
    <td>VZE4266</td><td>VZE5666</td>
    <td>28.09.2020</td><td class="till-overlap">20.06.2022</td>
    <td class="bar">630</td><td> </td> <td> </td>
   </tr>
   <tr>
    <td>7.088.G</td><td>+3RE</td>
    <td>VZE5666</td><td>VZE5605</td>
    <td class="from-overlap">28.09.2020</td><td class="till-overlap">28.09.2020</td>
    <td>0</td><td>overlap</td><td>from &lt; till predecessor</td>
   </tr>
   <tr>
     <td>7.088.J</td><td>+3RE</td>
     <td>VZE5605</td><td>VZH0702</td>
     <td class="from-overlap">28.06.2020</td>
     <td><span class="gap-till">28.06.2020</span></td>
     <td>0</td><td>overlap</td>
     <td>from &lt; till predecessor</td>
   </tr>
   <tr>
     <td>7.088.AG</td><td>+3RE</td>
     <td>VZH0702</td><td> </td>
     <td><span  class="gap-from">28.09.2020</span></td><td>03.05.2021</td>
     <td>217</td><td>gap</td>
     <td>from &gt; till predecessor</td>
   </tr>
   </tbody></table>

              
            
!

CSS

              
                table {
  border-collapse: collapse;
}
th { background-color: skyblue;}
th,td {
  border: solid thin;
  padding: 0.3em 0.2em;
}

td.from {
  background-image: linear-gradient(
    to right,
    rgba(30, 75, 115, 0.3),
    rgba(255, 255, 255, 0.1)
  );
}

td.till{
  background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.1),
    rgba(30, 75, 115, 0.3)
  );
}

.from-overlap-2 {
  background: linear-gradient(to right, #fb0000 40%, #fb000096 40% 60%, #fb000070 60% 80%, #ffcbcb4f 80%);
}

.till-overlap-2 {
  background: linear-gradient(45deg, #f0f0f0, #fb0000);
}

.from-overlap {
  background: linear-gradient(0.25turn, #fb0000, #fb000040, #fb000020, #ffffff);
}
.till-overlap {
  background: linear-gradient(0.25turn, #ffffff, #fb000020, #fb000040, #fb0000);
} 
/* #ffcbcb4f, */ 

.notused {
  background: linear-gradient(to right,
     red 20%, orange 20% 40%, yellow 40% 60%, green 60% 80%, blue 80%);
}

.from-gap {
  background: linear-gradient(0.25turn, #f69d3cd9, #f69d3c6b, #f69d3c40, #f0f0f0);
}
.till-gap {
  background: linear-gradient(0.25turn, #f0f0f0, #f69d3c40, #f69d3c6b, #f69d3cd9);
}

.gap-from {
  text-align:center;
  border-bottom: 4px solid;
  border-image:  linear-gradient(to right, lightgrey 40%, yellow 40%) 1;
}

.gap-till {
  text-align:center;
  border-bottom: 4px solid;
  border-image:  linear-gradient(to right, yellow 40%, lightgrey 40%) 1;
}

.gap-border {
  width: 150px;
  height: 150px;
  text-align:center;
  border-top: 5px solid;
  border-image:   linear-gradient(to right, lightgrey 30%, yellow 30% 70%,red 70%) 1;
}
              
            
!

JS

              
                
              
            
!
999px

Console