From thomas.schraitle@suse.de Sat Apr 21 15:08:18 2007 From: Thomas Schraitle To: doc@lists.opensuse.org Subject: Re: [opensuse-doc] How to make color background in LfL Docbook XML ? Date: Sat, 21 Apr 2007 17:11:24 +0200 Message-ID: <200704211711.24559.thomas.schraitle@suse.de> In-Reply-To: <7fac565a0704201744g59da0602g63b9b67943a6dce7@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1225323226249821374==" --===============1225323226249821374== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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: 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: ... Cell with background Cell with standard background Cell 1/entry> Cell 2
Always keep legibility in mind if you insert colors. The above PI works for HTML only. You need an additional PI for PDF: 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: opensuse-doc+unsubscribe(a)opensuse.org For additional commands, e-mail: opensuse-doc+help(a)opensuse.org --===============1225323226249821374==--