HtmlReporter::getCss PHP Method

getCss() protected method

Paints the CSS. Add additional styles here.
protected getCss ( ) : string
return string CSS code as text.
    protected function getCss()
    {
        return '.fail { background-color: inherit; color: red; }' . '.pass { background-color: inherit; color: green; }' . ' pre { background-color: lightgray; color: inherit; }';
    }

Usage Example

    protected function getCss()
    {
        return parent::getCss() . '
			.pass {color:green;}
			.subtle {color:#7B0000;}
			h1 {display:none;}
			h2,h3,h4{font-family:Verdana,Sans-serif;}
			table {margin-bottom:0.5em;width:100%;}
			tr {vertical-align:top;}
			td.first {width:3em;}
		';
    }
All Usage Examples Of HtmlReporter::getCss