Set the position of the table divider

I have a table with two columns (it only has one row).

But I want the right column to be next to the left column. Whenever I try, the right column is just right aligned.

Is there a way to set the position of the separator, or at least set the starting position of the right column next to the left column of text?

An example of my actual code:

<table style="width:400px;">
    <tr>
        <td>
            First
        </td>

        <td>
            100
        </td>
    </tr>
</table>

      

Thank you for your interest in you - at least looking at the question. Suggestions?

+3


source to share


2 answers


You may try

table{ border-collapse: collapse; }

      



DEMO .

+3


source


Depending on what exactly you want to achieve, you may want to take a look at the constrained CSS property. In your example, it should be set as:

border-collapse: collapse;

      



Example

+3


source







All Articles