Blob Blame History Raw
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>dblatex bgcolor</title><link rel="stylesheet" type="text/css" href="manual.css" /><meta name="generator" content="DocBook XSL Stylesheets V1.76.1" /><link rel="home" href="index.html" title="DocBook to LaTeX Publishing" /><link rel="up" href="apbs04.html" title="Tables" /><link rel="prev" href="apbs04.html" title="Tables" /><link rel="next" href="pi-dblatex_table-width.html" title="dblatex table-width" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">dblatex bgcolor</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="apbs04.html">Prev</a> </td><th width="60%" align="center">Tables</th><td width="20%" align="right"> <a accesskey="n" href="pi-dblatex_table-width.html">Next</a></td></tr></table><hr /></div><div class="refentry" title="dblatex bgcolor"><a id="pi-dblatex_bgcolor"></a><div class="titlepage"></div><div class="refnamediv"><h2><span class="refentrytitle">dblatex bgcolor</span></h2><p><code class="sgmltag-xmlpi">&lt;?dblatex
             <em class="parameter"><code>bgcolor</code></em>?&gt;</code> — Sets the Background Color of A Table Element</p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><pre class="programlisting">&lt;?dblatex bgcolor="#00FF00"?&gt;
&lt;?dblatex bgcolor="{blue}"?&gt;
&lt;?dblatex bgcolor="[gray]{0.8}"?&gt;</pre></div><div class="refsection" title="Description"><a id="idp4377360"></a><h2>Description</h2><p>Set the background color of a table element.  The color of a
    child element is inherited from its parent, with the exception of
    the color of row cells. These have a color which is inherited from
    the column in which they appear so long as no color is specified
    for the row.  How the color is set, whether by attribute or by
    processing instruction, does not matter.</p><p><a id="table-color-format"></a>The color can be expressed in hexadecimal
notation like for HTML (e.g. <code class="literal">#C0C0C0</code>) or in a syntax
understood by the <code class="filename">colortbl</code> latex package.</p><p>The default is the value of the table's
    <code class="sgmltag-element">bgcolor</code> attribute, or white when not otherwise
    specified.</p></div><div class="refsection" title="Context"><a id="idm669104"></a><h2>Context</h2><p>Recognized in the following elements<sup>[<a id="idm5446944" href="#ftn.idm5446944" class="footnote">1</a>]</sup>:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><code class="sgmltag-element">col</code></li><li class="listitem"><code class="sgmltag-element">colgroup</code></li><li class="listitem"><code class="sgmltag-element">entry</code></li><li class="listitem"><code class="sgmltag-element">entrytbl</code></li><li class="listitem"><code class="sgmltag-element">row</code></li></ul></div></div><div class="refsection" title="See Also"><a id="idp13214656"></a><h2>See Also</h2><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">See <a class="xref" href="sec-table.html#sec-table-color" title="Coloured tables">the section called “Coloured tables”</a></li></ul></div></div><div class="footnotes"><br /><hr width="100" align="left" /><div class="footnote"><p><sup>[<a id="ftn.idm5446944" href="#idm5446944" class="para">1</a>] </sup>HTML table elements have attributes which allow color to
      be specified.</p></div></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="apbs04.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="apbs04.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="pi-dblatex_table-width.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Tables </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> dblatex table-width</td></tr></table></div></body></html>