HTML & CSS Web Design
Html Css > Code Examples
Td tag line-height
Td tag line-height
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Td Tag Line Height</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type='text/css'>
td {
width: 400px;
font: 16px arial;
}
td.number {
font-size: 16px;
line-height: 1.6;
}
td.length {
font-size: 12pt;
line-height: 1.5em;
}
td.percentage {
font-size: 16px;
line-height: 75%;
}
</style>
</head>
<body>
<table>
<tr>
<td class="number"> Love begins at home, and it is not how much we do... but how much love we put in that action. Mother Teresa</td>
<td class="length"> Two people in love, alone, isolated from the world, that's beautiful. Milan Kundera </td>
<td class="percentage"> People who are sensible about love are incapable of it. Douglas Yates </td>
</tr>
</table>
</body>
</html>