On my blog i want to display question in red in color and Answer in Blue in Color. In question and answer i am using MathJAx to render MathML. I am controller the coloring of MathJax using CSS Like this
h3, h2, h4, h5
{
text-align: left;
font-weight: bold;
font-family: Verdana;
}
.question
{
text-align: left;
color: Red;
}
.centerit
{
color: Blue;
text-align: center;
}
that work perfectly fine in IE but in FireFox, it always display the MathJax in Black color? Any work around to resolve this issue. I am using MathJax 2.
Thankx
MathJax supports the \color
macro, but it works differently from LaTeX. In LaTeX, \color
works like plain TeX commands such as \bf
, but MathJax takes it as a LaTeX command like \textbf
.
\[ \color{red} The whole sentence is red in LaTeX,
but only the initial T is colored in MathJax. \]