PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: Selecting multiple classnames doesnt work
   PostPosted: 23 Feb 2010, 12:40 
Selecting an element based on multiple elements doesn't appera to work. For example div.a.b {font-weight: bold} isn't possible with pd4ml.

Is there a workound for this problem?

Reto


Code:
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
  <head>
    <meta content='text/html;charset=UTF-8' http-equiv='Content-Type' />
    <style>
      body .x div.a.b {
        color: green; }
    </style>
  </head>
  <body>
    <div class='x y'>
      <div class='a b c d'>
        asdfsadf
      </div>
    </div>
  </body>
</html>


  Subject: Re: Selecting multiple classnames doesnt work
   PostPosted: 15 Nov 2010, 05:32 
For the particular HTML sample a workaround would be to change the style to
Code:
    <style>
      body .x div.a {
        color: green;
      }
    </style>


PD4ML does not support selectors combine multiple classes, like "div.a.b".

We'll add support for it to the forthcoming release.


Last bumped by Anonymous on 15 Nov 2010, 05:32.



[Reply]     [ 2 posts ] 

Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share