You may also used an existing StyleSheet and a CSS class-selector with pre-defined style.
For example:
- <?php
- require_once 'HTML/Progress.php';
-
- $bar = new HTML_Progress();
- // specify a user-ident (instead of the auto-generated value)
- $bar->setIdent('myPB');
- $bar->setStringPainted(true);
-
- $ui =& $bar->getUI();
- $ui->setStringAttributes('id="myPBstring"');
- ?>
could be replaced by:
<style type="text/css">
<!--
.myPB .myPBstring { width: 100px; background-color: lightyellow; color: black; }
// -->
</style>
|