Using CSS, I want to fine-tune the "ASCII art" table, for example , for example:
+------+---------+----+ | Jill | Smith | 50 | +------+---------+----+ | Eve | Jackson | 94 | +------+---------+----+ | John | Doe | 80 | +------+---------+----+
<table> <tr> <td>Jill</td> <td>Smith</td> <td>50</td> </tr> <tr> <td>Eve</td> <td>Jackson</td> <td>94</td> </tr> </table>
For more information about these tables, check out this table generator: Text format as a table
If possible, it would be great to just use CSS rather than hard-code any of the border characters.
My attempt
I tried using border-image , but the results are not quite what I want:
My CSS:
* { font-family: "Ubuntu Mono"; size: 10px; padding: 0; margin: 0; } table { border-spacing: 0; border-width: 8px; border-image: url("border.png") 16 8 round; }
border.png :

Result:

As you can see, the upper and lower borders are not displayed. In addition, no rows are displayed between cells.
Using border-width: 16px :

The upper and lower borders are now displayed, but the left and right borders are stretched.
Another thing that I don't like about using my method is that the image does not respond to the font size.
html css html-table css3 ascii-art
Frithjof
source share