At 07:46 PM 9/10/2004, Jacob Kjome wrote:

If the defaults are clearly defined, then it is simple to override those
properties.

That is simply not true. Let me give you an example:

Assume that the following CSS rule is *embedded* in the output of
EnhancedHTMLAppender. The embedded rules are what you would call the
default rules.

H1.someclass {
  text-decoration: none;
  font-family: Helvetica, sans-serif;
  font-weight: bold;
  background: #DDD;
  color: #0066CC;
  border: 3px solid green;
  padding-left: 1em;
  padding-right: 1em;
  padding-top: 3px;
  padding-bottom: 0px;
}

Let the user include a CSS file (with the intent of overriding the
default rules). Let that CSS file contain the following rule:


H1.someclass { background: black; color: white; border-bottom: 1px solid red; }

The actual applicable rule will be a combination of the embedded rule
*and* the rule from the CSS file. If the embedded rule is mentioned
before the CSS file, then the output will have a black back ground,
white font and a red border-border but it will also rendered in bold,
Helvetica font, with 3px green border at the top, left and right, in
addition to the padding rules from the embedded CSS.

CSS rules do not combine simply, far from it.


-- Ceki G�lc�

For log4j documentation consider "The complete log4j manual"
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to