Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<style type="text/css">
/* this centers the tanle itself within it containr element. Also,am assuming you want no space between borders this CSS will keep you from having to style the table in the markup*/
.tab {
font-weight: 300;
color: #000;
font-size:90%;
font-family: Arial, Helvetica, sans-serif;
margin:0 auto;
width:140px;
border-bottom: 2px solid #CCC;
border-collapse: collapse;
border-spacing: 0;
table-layout:fixed; /* this makes the WIDTH of the table cells be automatically determined as WIDTH of table/# of columns, plus it's faster*/
}
/*this centers the text within each table cell, which I THINK is what you were asking for*/
.tab td{
text-align: center;
border: 1px solid #ccc;
}
</style>
</head>
<body>
<table class="tab">
<tr>
<td>1000</td>
<td>1</td>
<td>1000</td>
</tr>
<tr>
<td>1000</td>
<td>1</td>
<td>1</td>
</tr>
</table>
</body>
</html>
Explanation is in the CSS comments. Hope this helps.
Bookmarks