HTML help
CB
Ƹ̵̡Ӝ̵̨̄ƷDer Millionendorf- Icrontian
I've been writing HTML from scratch for a long time. So have GH and Zan. But, the combined knowledge of the three of us can't find me an answer to this one:
I want tabs.
That's it...
I've got some text that goes into a table cell, and I want to put a little bit of space at the beginning of some of the lines (without adding more cells to the table).
Why is there no nuxing 'tab' tag?! Why?! Why?!
/me exhales finally.
I want tabs.
That's it...
I've got some text that goes into a table cell, and I want to put a little bit of space at the beginning of some of the lines (without adding more cells to the table).
Why is there no nuxing 'tab' tag?! Why?! Why?!
/me exhales finally.
0
Comments
You could also try adding padding to the table cells. From what I remember this is a nightmare and is interpreted by various browsers differently. I know in CSS you can specify the padding / margin etc for each side of a bounding box (different than a table cell) but I can't remember what's allowed in good-ol tables and what actually works in all browsers (I'm a CSS man now ). .
*edit again
I had some fun and put a tab in word and checked the source, here's what does a tab apparently.
< body lang=EN-US style='tab-interval:.5in' > (change in global body tag)
< p class=MsoNormal > < span style='mso-tab-count:1' > < /span > test < /p >
where p.MsoNormal is defined as:
p.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
Obviously most of this is crap bloat-code, but you can play around within some CSS code like this and maybe make it a little nicer. CSS and tables sometimes don't play well in certain browsers though so beware.
*edit 3
just thought of something else, depending on the data you could make each column into two columns and do a colspan=2 for the unindented and then no colspan for the indented ones. Again its crude ... but html is _always_ crude
Remove the spaces between the letters. I had to add them or it would not show up.
Or however far you want to tab over. You can also use "em" which is a space equivalent to the height of the font being used.
See my rather rudimentary example over at www.kwitko.net/test.html.
T1, if you ever want to show something like that in a post, use &amp;. So in your case you would write "&nbsp;" Err... on second thought, just add the spaces.
nbsp is the solution that I needed. Now that you tell me, I can slap myself in the head for not remembering it from last time I had this problem...
Thanks guys.
To get height flexing, height of cell you want to flex is *, and cell\table overall width and border can be percentages. To get width flex, move * to width position and percentages to vertical. I like floating tables that stretch vertical most of time, some folks still use smaller than a 1024x768 true view pane size in browser.
Table on background gets you an implicit single layer on layer effect, and if you want transparent cells use noborder and a transparency as cell fill. To get cells to stand out as layer look, fill with solid color over background.
Few basics, from a DTP guy who likes simple sites as they are easy to maintain.
John.