I have a% of% where the contents of <table>
are random numbers, I need the numbers to occupy 100% of the cell, however much I put the size 100%, with <td>
and padding
zero, always % is inside the cell. I need the number to touch the edge of the top and bottom ie margin
and padding
. I tried everything but margin:0
insists on continuing.
Here is an example of how my css is.
table{
border: 1px solid;
border-collapse: collapse;
border-spacing: 0;
border-padding: 0;
cellpadding: 0;
cellspacing: 0;
width: 300px;
TABLE-LAYOUT: fixed;
margin-right: 10px;
margin-left: 10px;
margin-bottom: 6px;
}
table td {
border-spacing: 0;
border-padding: 0;
cellpadding: 0;
cellspacing: 0;
border: 1px solid;
text-align: center;
font-weight: bold;
font-size: 20px;
}
To illustrate despair, I put padding: 0
zero to padding
and padding
and td
from within the cell continues.