The spacing between the length and width of the figure needs to be adjusted properly. However, I am facing some challenges in achieving a smooth result.
I am looking for equal distance between "tr" and "th" elements, similar to this example:
https://i.sstatic.net/fkGDQ.png
Currently, there is inconsistency in the spacing between graphics.
Could someone please provide guidance on how to achieve this?
Below is the code snippet where the width spacing between items seems incorrect:
fieldset.scheduler-border {
border: solid 3px #000000 !important;
padding: 10px 10px 10px 10px;
border-bottom: none;
}
legend.scheduler-border {
width: auto !important;
border: none;
font-size: 36px;
}
tr {
display: block;
margin: 1px 0;
}
<form>
<fieldset class="scheduler-border">
<legend class="scheduler-border"> Test </legend>
<table id="ConnectionMonitorTable">
<thead>
<tr>
<th width="50%">
<svg width="150" height="100">
<rect width="150" height="100" style="fill:rgb(0,0,255);stroke-width:10;stroke:rgb(0,0,0)"></rect> />
<text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle">TEXT</text>
</svg>
</th>
<th width="50%">
<svg width="150" height="100">
<rect width="150" height="100" style="fill:rgb(0,0,255);stroke-width:10;stroke:rgb(0,0,0)" />
<text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle">TEXT</text>
</svg>
</th>
<th width="50%">
<svg width="150" height="100">
<rect width="150" height="100" style="fill:rgb(0,0,255);stroke-width:10;stroke:rgb(0,0,0)" />
<text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle">TEXT</text>
</svg>
</th>
<th width="50%">
<svg width="150" height="100">
<rect width="150" height="100" style="fill:rgb(0,0,255);stroke-width:10;stroke:rgb(0,0,0)" />
<text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle">TEXT</text>
</svg>
</th>
</tr>
<tr>
<th width="50%">
<svg width="150" height="100">
<rect width="150" height="100" style="fill:rgb(0,0,255);stroke-width:10;stroke:rgb(0,0,0)" />
<text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle">TEXT</text>
</svg>
</th>
</tr>
</thead>
</table>
</fieldset>
</form>
Your assistance is greatly appreciated!