I want to write a Formular with some input fields. I use Tailwind 2 and the new Grid System.
I want to have a 3 Column Formular (grid-cols-3) On the second row I have a col-span-2 to have a row over 2 Colums because I want place a bigger textarea there. The labels an input sizes a dfined with w-1/2 every time. When I have a colspan 2 I thought I have simple to change the width from the label to w-1/4 and the textbox to w-3/4 so the label must have the same size than all other only the input must have a bigger size. What am I doing wrong? The label from the w-1/4 is 2 pixel bigger than the other one.
Here I have a link to the code example. https://play.tailwindcss.com/IqYsmfxpwJ
<div class="">
<h1>InfoBox</h1>
<div class="grid grid-cols-3 gap-2">
<div class="">
<lable class="inline-block w-1/2">One</lable><input class="w-1/2 border">
</div>
<div class="">
<lable class="inline-block w-1/2">Two</lable><input class="w-1/2 border">
</div>
<div class="">
<lable class="inline-block w-1/2">Tree</lable><input class="w-1/2 border">
</div>
<div class="col-span-2">
<lable class="inline-block w-1/4">Four</lable><input class="w-3/4 border">
</div>
<div class="">
<lable class="inline-block w-1/2">Five</lable><input class="w-1/2 border">
</div>
</div>
</div>
`
