Previous Up Next
Tag ln Tags Xml2Pdf Tag literal
Tag stylesheet

Tag stylesheet

How to use the tag stylesheet ?

Guillaume Luchet, guillaume@geelweb.org
Copyright © 2006, Guillaume Luchet
BSD License

Tag stylesheet

The tag stylesheet is used to define styles.

Example :

  1. <stylesheet file="/home/guil/dev/src/php/xml2pdf/styleSheets/style.txt" />
  2.  
  3. <text fontcolor='#808080' textalign='j'>normal text <b>bold text!</b> <u>underline text!</u> <i>italic text</i> <b><u><i>all in same time!</i></u></b> <br/><red>red text on new line</red></text>

the tag attributes are:

  • file : style sheet file name [string]

style sheet example:

  1. /*
  2. Define the styles tags usable in text tag.
  3.  
  4. property recognize
  5. .tagName{
  6. font-family: times;
  7. font-style: BUI;
  8. font-size: 8;
  9. color: #000000;
  10. indent: 0;
  11. }
  12.  
  13. */
  14.  
  15. .b{
  16. font-styleB;
  17. }
  18. .u{
  19. font-styleU;
  20. }
  21. .i{
  22. font-styleI;
  23. }
  24. .br{
  25. indent2;
  26. }
  27. .red{
  28. color:#ff0000;
  29. }

Previous Up Next
Tag ln Tags Xml2Pdf Tag literal

Documentation generated on Wed, 11 Oct 2006 22:27:08 +0200 by phpDocumentor 1.3.0