I want to create a flow indicator bar in the form of:
Step 1 > Step 2 > Step 3
,I use table to do that, and the follow html did almost exactly I want:
.concave{
border-left:1em solid transparent;
border-top:1em solid orange;
border-bottom:1em solid orange;
}
.middle{
background-color:orange;
}
.convex{
border-left:1em solid orange;
border-top:1em solid transparent;
border-bottom:1em solid transparent;
}
<table cellspacing="0" style="font-size:30px;">
<tr>
<td class="concave"/>
<td class="middle" style="width:25%;">Step 1</td>
<td style="max-width:0.5em;"><div class="convex"/></td>
<td class="concave"/>
<td class="middle" style="width:25%;">Step 2</td>
<td style="max-width:0.5em;"><div class="convex"/></td>
<td class="concave"/>
<td class="middle" style="width:50%;">Step 3</td>
</tr>
</table>
but there is still some unwanted spaces in the table, how can I remove that? I tried:
.concave{
border-left:1em solid transparent;
border-top:1em solid orange;
border-bottom:1em solid orange;
}
.middle{
background-color:orange;
}
.convex{
border-left:1em solid orange;
border-top:1em solid transparent;
border-bottom:1em solid transparent;
}
<table cellspacing="0" style="font-size:30px;margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;">
<tr>
<td class="concave"/>
<td class="middle">Step 1</td>
<td style="max-width:0.5em;"><div class="convex"/></td>
<td class="concave"/>
</tr>
</table>
which sets both margin and padding of table be 0px, but still have some unwanted spaces.