Hi Alexey,
On Samstag, 21. April 2007, Alexey Eremenko wrote:
>
> How to make color background in LfL Docbook XML ?
>
> This would be great for this:
> http://www.virtualbox.org/wiki/Guest_OSes
Use a processing instruction (PI) with the target dbhtml, for example:
<?dbhtml bgcolor="RGB_COLOR_CODE"?>
Replace RGB_COLOR_CODE with a RGB value or a color name, for
example "#DDAAFF" or "red". Depending where you place the PI you can set
the background color for a cell only or for a row:
<table>
<title>...</title>
<tgroup cols="2">
<tbody>
<row>
<entry><?dbhtml bgcolor="#96a7ca"?>Cell with background</entry>
<entry>Cell with standard background</entry>
</row>
<row><?dbhtml bgcolor="#EEEEEE" ?>
<entry>Cell 1/entry>
<entry>Cell 2</entry>
</row>
</tbody>
</tgroup>
</table>
Always keep legibility in mind if you insert colors. The above PI works
for HTML only. You need an additional PI for PDF:
<?dbfo bgcolor="RGB_COLOR_CODE"?>
Please be careful with colors in PDF as they are printed in grayscale
normally. Some combinations of background and foreground colors lead to
almost unreadable text.
Probably the safest way is to avoid it and try to add an additional column
with further explanations and a legend/caption or use table footnotes.
Bye,
Tom
--
----------------------------------------------------------------------
SUSE LINUX Products GmbH >o)
Maxfeldstrasse 5 /\\ Documentation Specialist
90409 Nuernberg, Germany _\_v http://en.opensuse.org/Documentation_Team
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]