private void AddCoverColor(HtmlDom dom, Color coverColor)
{
var colorValue = ColorTranslator.ToHtml(coverColor);
// var colorValue = String.Format("#{0:X2}{1:X2}{2:X2}", coverColor.R, coverColor.G, coverColor.B);
XmlElement colorStyle = dom.RawDom.CreateElement("style");
colorStyle.SetAttribute("type","text/css");
colorStyle.InnerXml = @"
DIV.coverColor TEXTAREA { background-color: colorValue !important; }
DIV.bloom-page.coverColor { background-color: colorValue !important; }
".Replace("colorValue", colorValue);//string.format has a hard time with all those {'s
dom.Head.AppendChild(colorStyle);
}