For some reason, unicode character ⇄ 'RIGHTWARDS ARROW OVER LEFTWARDS ARROW' (⇄) does not displayed properly in MS Internet Explorer 8.
.dblarrow { font-size: 125%; top: -0.4ex; margin: 0 2px; } .dblarrow:after { content:"\2190"; position: absolute; left: 0; top: 0.5ex; }
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.
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.
.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;}
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.
.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; }
.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; }
.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%; }
.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; }
.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; }
The CSS box model is essentially a box that wraps around HTML elements, and it consists of: margins, borders, padding, and the actual content.
Citing this page:
Generalic, Eni. "Writing mathematical and chemical equations on the Web with CSS." EniG. Periodic Table of the Elements. KTF-Split, 18 Jan. 2024. Web. {Date of access}. <https://www.periodni.com/mathematical_and_chemical_equations_on_web.html>.
Articles and tables