Add the CSS code to the header of the output page. >>> b = HtmlBuilder() >>> b.headerCss('NameOfCss') >>> 'Generated by PageBot' in ''.join(b._cssOut) True
(self, name)
| 438 | print('[HtmlBuilder.writeCss] Cannot write CSS file "%s"' % path) |
| 439 | |
| 440 | def headerCss(self, name): |
| 441 | """Add the CSS code to the header of the output page. |
| 442 | |
| 443 | >>> b = HtmlBuilder() |
| 444 | >>> b.headerCss('NameOfCss') |
| 445 | >>> 'Generated by PageBot' in ''.join(b._cssOut) |
| 446 | True |
| 447 | """ |
| 448 | self.addCss(self.SECTION_CSS % ('CSS of "%s"\n\n\tGenerated by PageBot\n\tCreated %s' % (name, now()))) |
| 449 | |
| 450 | def resetCss(self): |
| 451 | """Export the CSS to reset specific default behavior of browsers.""" |
no test coverage detected