18mm pitch
authorTomas Mudrunka <tomas@mudrunka.cz>
Thu, 7 Oct 2021 11:47:02 +0000 (13:47 +0200)
committerTomas Mudrunka <tomas@mudrunka.cz>
Thu, 7 Oct 2021 11:47:02 +0000 (13:47 +0200)
tools/din_rail_module_label_generator.html

index 64cfde593f5525e67d3a7f06f70e0b362184d6b1..58e2311c696e66b2a0c2cfd8ea9b76fb952d9d3e 100644 (file)
@@ -1,28 +1,30 @@
 <html>
 <head>
-<title>DIN Module label generator</title>
+<title>Distribution Board Label Generator for DIN Rail Modules</title>
 <style>
+/* DIN Rail Modules are 17.5mm wide, but mounted with 18mm pitch to accomodate differences */
+
 * { font-family: sans-serif; font-weight: normal; font-size: 98%; }
 td {
-       border: 1px solid black; width: 17.5mm; height: 17.5mm; 
+       border: 1px solid black; width: 18mm; height: 16mm; 
        text-align: center; padding: 0; overflow: hidden;
        display: flex; float: left; margin-bottom: 10mm; box-sizing: border-box;
        justify-content: center; /* align-items: center; */
 }
 td:not(:last-child) { border-right: 0px solid red; }
-td[colspan="2"] { width: calc(2 * 17.5mm); }
-td[colspan="3"] { width: calc(3 * 17.5mm); }
-td[colspan="4"] { width: calc(4 * 17.5mm); }
-td[colspan="5"] { width: calc(5 * 17.5mm); }
-td[colspan="6"] { width: calc(6 * 17.5mm); }
-td[colspan="7"] { width: calc(7 * 17.5mm); }
-td[colspan="8"] { width: calc(8 * 17.5mm); }
+td[colspan="2"] { width: calc(2 * 18mm); }
+td[colspan="3"] { width: calc(3 * 18mm); }
+td[colspan="4"] { width: calc(4 * 18mm); }
+td[colspan="5"] { width: calc(5 * 18mm); }
+td[colspan="6"] { width: calc(6 * 18mm); }
+td[colspan="7"] { width: calc(7 * 18mm); }
+td[colspan="8"] { width: calc(8 * 18mm); }
 tr { margin-bottom: 10mm; }
 table { border-spacing:0px; border-collapse: collapse; }
 </style>
 </head>
 <body>
-<h2>DIN Module label generator</h2>
+<h1>Distribution Box Label Generator for DIN Rail Modules</h1>
 github.com/harvie
 <br /><br />
 
This page took 0.182627 seconds and 4 git commands to generate.