﻿/* 
	Filename: 	maths.css 
	Date: 		25 jan 10	
*/

/* makes sure equation doesn't line wrap */
.number { word-spacing: -0.07em; white-space: nowrap; }

.symbol{
font-size:larger;
}

/* another inline math display */
span.inline_eqn { white-space: nowrap; }


/* standardised look to super & subscripting */
sup { vertical-align: 0.8ex; font-size:90%; }
sub { vertical-align: -0.6ex; font-size:90%; }


/* using tables to display equation
<table class="fraction" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td rowspan="2" nowrap="nowrap">
            <i>x</i> =  
        </td><td nowrap="nowrap">
            <i>x</i><sup>2</sup> + <i>x</i> + 1
        </td>
    </tr><tr>
        <td class="upper_line">
            2 cos(<i>x</i>)
        </td>
    </tr>
</table>
*/
td.upper_line { border-top:solid 1px black; }

table.fraction { text-align: center; vertical-align: middle;
    margin-top:0.5em; margin-bottom:0.5em; line-height: 2em; }

/* Numbered Tabled equations */
table.num_eqn { width:99%;  text-align: center; vertical-align: middle;
    margin-top:0.5em; margin-bottom:0.5em; line-height: 2em; }
td.eqn_number { text-align:right; width:2em; }
