Set style for an anchor in table cell
<!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></title>
<style type="text/css">
td a {
display: block;
background-color: #333;
color: white;
text-decoration: none;
padding: 4px;
}
</style>
</head>
<body>
<table cellspacing="15">
<tr>
<th colspan="2">
General
</th>
</tr>
<tr>
<th>
</th>
<th>
Estimate
</th>
</tr>
<tr>
<td>
<a href=" ">Total population</a>
</td>
<td>
272,091
</td>
</tr>
</table>
</body>
</html>
Related examples in the same category