On Tuesday June 6 2006 06:43 am, Johnny Andersson wrote:
> Hi, all nice people out there!
>
> I am working a bit with the html editor and as far as I understand I
> can't use tabulators when working with html documents, so I use tables
> instead. This is convenient as long as I want to allign text to the
> left, right and things like that. However, when working with all word
> processors I know of, and using tabulators, there is a decimal tabulator
> or sometimes even a character tabulator available, which makes it
> possible to allign text at a specific character. I can't find an
> equivalent to this when using tables where tabulators are not available
> (like when working with html files).
>
> In this very specific case I want the text to be alligned at the
> character "–". I have a column with dates (using the international date
> format IEC8601, that is YYYY-MM-DD - have a look at
> http://freedos-32.sourceforge.net/showdoc.php?page=standards#iso8601 if
> you want to) and three different cases are possible:
>
> A. Given start date until unknown end date
> B. Given start until given end date
> C. Unknown (or not important) start date until given end date
>
> Examples:
> A. 2006-01-01 -
> B. 2006-01-01 - 2006-06-06
> C. - 2006-06-06
>
> Now I want the "-" between dates to be centered in all three cases,
> using the same format for each one of them. This will look like this (if
> it doesn't look right, please copy it and paste it into a text editor
> like NotePad or just change the font to Courier):
>
> 2006-01-01 -
> 2006-01-01 - 2006-06-06
> - 2006-06-06
>
>
> Can I do this at all in a html document? How?
>
> My temporary solution is that I allign everything to the right, then I
> fill things up with numbers with the text colour set to the same colour
> as the background.
>
> 2006-01-01 - 9999-99-99
> 2006-01-01 - 2006-06-06
> - 2006-06-06
>
> 9999-99-99 is the same colour as the background... however, when the
> page is printed out from a web browser, the background colour is going
> white (which it wasn't originally) while the text will remain to be the
> original background colour (not white) which makes the text (9999-99-99)
> visible, which I, of course, do not want.
>
> Is there a clever solution for this?
> One solution I have been thinking of is to skip html, use Writer, use
> tabulators and then export to PDF (if PDF supports tabulators). The main
> idea with html format in my case was that everyone can read it using
> their web browser. I guess I have to leave that idea behind in that
> case...
>
>
> Best regards
There is a possible solution, but it requires placing each set of
dates in a different cell.
Create an additional table content style, and name it (e.g., Table
ContentsR). Use this additional style for example C
( - 2006-0606). The adjust the width of the column
to line up the hyphen in the middle. While this will not be perfect, it
should be fairly close.
Dan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]