public function css($with_attribute = true) { $css = 'background-color:' . $this->background() . ';color:' . $this->foreground(); if ($with_attribute) { $css = ' style="' . $css . '"'; } return $css; }