is there an equivalent to the consoles special char '\t' in html ?
+1
A:
Other than relying on non breaking spaces, you can use a literal tab character inside of pre element, or by specifying white-space:pre as such:
<p id="foo">tab between</p>
<style>
p#foo {
white-space:pre;
}
meder
2009-08-29 21:43:58
That depends on browser behaviour, sadly.
strager
2009-08-29 21:45:14
+1
A:
You could use CSS's text-indent
rule to apply a pre-defined indentation to the first line of a textblock.
<p style="text-indent:20px;">Hello World. I'm indented 20px.</p>
Jonathan Sampson
2009-08-29 21:44:15
+2
A:
Use tables for table data.
There is no standard way to tabulate data without a table (either a real table using <table> or faking it with CSS display
).
strager
2009-08-29 21:44:40