My team sometimes applies multiple classes to objects in the HTML so that we can use our stylesheets more efficiently. This works fine in the HTML5, but Flare does not apply the classes when we build the PDF. Let me give you an example. We contain all of our notes, tips, and warnings inside divs. Since that div looks the same for all three message types (except for the colors), we save room by writing a generic div style in the CSS:
Code: Select all
div.notification
{
width: 65%;
margin: 16px;
position: relative;
}
For each
type of message, we create a new section in the CSS. The tip one looks like this:
Code: Select all
div.tip
{
background-color: #DDEFD7;
color: #308935;
}
This makes the tip green. In the HTML we specify both classes together:
Again, this works well in the HTML5 output. The div takes on the styles of both div.notification and div.tip. When we build the PDF, however, these sections contain no style at all. They look like normal paragraph text.
Does anyone know a fix for this problem?