Since you are using the table element, put the minus characters (in fact, Ascii hyphens, formally HYPHEN-MINUS characters) in your own column. You must also make the markup valid (the td element can only be a child of tr ).
<table> <tr> <td class="lines">----</td> <td class="text">My page that is far too long for it to fit on one row</td> </table>
In CSS, add td { vertical-align: top; } td { vertical-align: top; } . (Or add the appropriate HTML markup, <tr valign=top> , for each tr element.
By default, the columns are left-aligned and you can customize it as you wish. In modern browsers, you donβt even need class attributes, since you can use the td:first-child and td:first-child + td selectors, for example.
source share