Skip to content

Instantly share code, notes, and snippets.

@rs77
Created April 22, 2012 21:17
Show Gist options
  • Save rs77/2466981 to your computer and use it in GitHub Desktop.
Save rs77/2466981 to your computer and use it in GitHub Desktop.
Fractions using Table
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>HTML Fractions - Table</title>
<style>
table {
font-size: 16px;
}
div.numer {
border-bottom:1px solid;
text-align:center;
font-size: 0.8em;
}
div.denom {
font-size: 0.8em;
border-top: 1px solid;
text-align: center;
}
</style>
</head>
<body>
<table>
<tr><td>Substitute 4 for 'x' in the equation: &nbsp;</td>
<td>
<div class="numer">x<sup>2</sup> + 3x + 5</div>
<div class="denom">2x</div>
</td>
</tr>
</table>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment