css - How to vertically align HTML text as in a column -
i'd have html looks this:
we know that: 2*1 = 2 2*2 = 4 2*3 = 6
(i.e., numbers aligned in column)
i use table, or maybe text-indent.
i'd know other options, , what, if any, "the right way".
use <pre>
tag. quote w3schools:
text in
<pre>
element displayed in fixed-width font (usually courier), , preserves both spaces , line breaks.
or if not option you, can use css set element preserve white space adding white-space: pre;
.
Comments
Post a Comment