tags:

views:

21

answers:

1

Hello, I'm using the following snippet to display equations on my blog

<script src='http://www.mathjax.org/mathjax/MathJax.js' type='text/javascript'> 
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
    tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
  });
</script> 

and I would like to change equations color to white because my background is somewhat dark, how can this be done?

A: 

Equations should inherit styles from ancestor elements, just like any normal element. You could try something like the following:

<head>
 <style>.equation { color: white; }</style>
</head>
<body>
 <span class="equation">$ax^2+bx+c$</span>
</body>
Sean Hogan
Thanks,the class is .MathJax, and I will not change the color finally, because the color of some symbols is always black (because they are images) so I will change the background it will be more esthetic.
ubugnu