The double arrow in the equilibrium reaction
For some reason, unicode character ⇄ ‘RIGHTWARDS ARROW OVER LEFTWARDS ARROW’ (⇄) does not displayed properly in MS Internet Explorer 8.
HTML Code:
CSS Code:
.dblarrow { font-size: 125%; top: -0.4ex; margin: 0 2px; } .dblarrow:after { content:"\2190"; position: absolute; left: 0; top: 0.5ex; }
How to display fractions in Web pages
To represent the illusion of a fraction, you superscript the numerator and subscript the denominator on either side of the fraction slash. The fraction slash character ⁄ (⁄ or ⁄) renders this a bit nicer than a regular slash.
HTML Code:
Here is a simple way to display fractions with the horizontal divider in a web page. This example uses the inline-block value to display “A over B” in HTML.
HTML Code:
<div class=”fraction”>
<span class=”fup”><i>n</i>(NaOH)</span>
<span class=”bar”>/</span>
<span class=”fdn”><i>V</i>(NaOH)</span>
</div>
= 1.2345 mol dm<sup>-3</sup>
CSS Code:
.fraction { display: inline-block; vertical-align: middle; margin: 0 0.2em 0.4ex; text-align: center; } .fraction > span { display: block; padding-top: 0.15em; } .fraction span.fdn {border-top: thin solid black;} .fraction span.bar {display: none;}
How to write a oxidation numbers above the elements in the equation
During a redox reaction, the total increase in the oxidation number must be equal to the total decrease in the oxidation number. This is the basic principle for balancing chemical equations. These codes will help you write the oxidation number of atoms in each compound above the symbol of the chosen element.
HTML Code:
<span class=”sy-r”>Te<span class=”oxbr”>+4</span></span><span class=”sy”>O<span class=”oxbr”>-2</span></span><sub>2</sub>
<span class=”rarrow”>→<span class=”larrow”>←</span></span>
<span class=”sy”>H<span class=”oxbr”>+1</span></span><sub>6</sub><span class=”sy-r”>Te<span class=”oxbr”>+6</span></span><span class=”sy”>O<span class=”oxbr”>-2</span></span><sub>6</sub> +
<span class=”sy-g”>2e<sup>–</sup></span>
<span class=”sy-b”>Cr<span class=”oxbr”>+6</span></span><sub>2</sub><span class=”sy”>O<span class=”oxbr”>-2</span></span><sub>7</sub><sup>2-</sup> +
<span class=”sy-g”>6e<sup>-</sup></span>
<span class=”rarrow”>→<span class=”larrow”>←</span></span>
2<span class=”sy-b”>Cr<span class=”oxbr”>+3</span></span><sup>3+</sup>
CSS Code:
.sy, .sy-r, .sy-g, .sy-b { position: relative; text-align: center; } .sy-r {color: #f00;} .sy-g {color: #4f8c4f;} .sy-b {color: #00f;} .oxbr, .oncapital, .onsmall { position: absolute; top: -1em; left: 0px; width: 100%; font-size: 70%; text-align: center; } .onsmall { top: -0.7em; }
Vectors
HTML Code:
<div class=”fraction”>
<span class=”fup”>Δ<span class=”sy”><i>v</i><span class=”onsmall”>→</span></span></span>
<span class=”bar”>/</span>
<span class=”fdn”>Δ <i>t</i></span>
</div>
CSS Code:
.sy { position: relative; text-align: center; } .oncapital, .onsmall { position: absolute; top: -1em; left: 0px; width: 100%; font-size: 70%; text-align: center; } .onsmall { top: -0.7em; }
Limits and mass number
HTML Code:
<div class=”limes”>
<span class=”overup”>lim</span>
<span class=”overdn”>Δ <i>t</i>→0</span>
<div class=”fraction”>
<span class=”fup”>Δ<i>v</i></span>
<span class=”bar”>/</span>
<span class=”fdn”>Δ <i>t</i></span>
</div>
<span class=”limes”><span class=”numup”>14</span><span class=”overdn”>7</span>
</span>N + <span class=”sy”>ν<span class=”onsmall”>–</span></span>
CSS Code:
.limes { position: relative; display: inline-block; margin: 0 0.2em; vertical-align: middle; text-align: center; } .limes > span { display: block; margin:-0.5ex auto; } .limes span.numup, .limes span.overdn { font-size: 70%; }
Sum and integrals
HTML Code:
<span class=”intsuma”>
<span class=”lim”>5</span>
<span class=”sum-frac”>∑</span>
<span class=”lim”><i>n</i>=0</span>
</span>
<div class=”fraction”>
<span class=”fup”>(<i>x</i> + 1)<sup><i>n</i></sup></span>
<span class=”bar”>/</span>
<span class=”fdn”><i>n</i></span>
</div>
<span class=”lim-up”>2π</span>
<span class=”sum”>∫</span>
<span class=”lim”>0</span>
</span>
sin<i>x</i> d<i>x</i> = 0
CSS Code:
.intsuma { position: relative; display: inline-block; vertical-align: middle; text-align: center; } .intsuma > span { display: block; font-size: 70%; } .intsuma .lim-up { margin-bottom: -1.0ex; } .intsuma .lim { margin-top: -0.5ex; } .intsuma .sum { font-size: 1.5em; font-weight: lighter; } .intsuma .sum-frac { font-size: 1.5em; font-weight: 100; }
Radicals
HTML Code:
<span class=”radical”>√</span><span class=”radicand”><i>x</i><sup>2</sup> + 6</span>
CSS Code:
.radical { position: relative; font-size: 1.6em; vertical-align: middle; } .n-root { position: absolute; top: -0.333em; left: 0.333em; font-size: 45%; } .radicand { padding: 0.25em 0.25em; border-top: thin black solid; }