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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -