Hello,
I have a table that I use to display data.
When the the page is displayed in FF, table elements appear the same size as the text outside of the table, and that's what I want. However, in IE and Safari, the text appears much larger.
I tried defining a class to assign a font size to each cell but I can't find a value that's right for IE and FF - if data is displayed correctly in IE, it's too small in a FF. If it's displayed correctly in FF, it appears too big in IE.
Only tables seem to be having this problem.
Here are sniplets of my CSS and HTML (the table is displayed inside #content division. the #wrapper wraps all divisions, including #content)...
[code=css]
body {
margin :0;
padding :0;
font-family: Verdana, Tahoma, Arial, sans-serif;
font-size: 100%;
background: #F8F8FF;
text-align: center;
}
#wrapper {
margin: 0 auto;
width: 922px;
border: 2px solid #E8E6E6;
margin-top: 10px;
margin-bottom: 20px;
text-align: left;
background: #FFFFFF;
}
#content {
float: left;
border-left: 2px solid #E8E6E6;
background: #FFFFFF;
margin: 0px 0px 0px 197px;
padding-top: 4px;
padding-left: 16px;
padding-right: 5px;
padding-bottom: 5px;
width: 498px;
display: inline;
min-height: 1200px;
font-size: 76%;
}
[/code]
[html]
<table width="464" border="0">
<tr>
<td width="16">&nbs p;</td>
<td width="78">&nbs p;</td>
<td width="151"><st rong>Height</strong></td>
<td width="201" ><strong>Weight </strong></td>
</tr>
<tr>
<td> </td>
<td><strong>Mal e</strong></td>
<td>18 to 22 inches</td>
<td>33 to 45 pounds</td>
</tr>
<tr>
<td> </td>
<td><strong>Fem ale</strong></td>
<td>17 to 21 inches</td>
<td>22 to 35 pounds</td>
</tr>
</table>
[/html]
The page is not on the WEB, so I can't post the link. Sorry.
Any suggestion?
Thank you,
Ed
I have a table that I use to display data.
When the the page is displayed in FF, table elements appear the same size as the text outside of the table, and that's what I want. However, in IE and Safari, the text appears much larger.
I tried defining a class to assign a font size to each cell but I can't find a value that's right for IE and FF - if data is displayed correctly in IE, it's too small in a FF. If it's displayed correctly in FF, it appears too big in IE.
Only tables seem to be having this problem.
Here are sniplets of my CSS and HTML (the table is displayed inside #content division. the #wrapper wraps all divisions, including #content)...
[code=css]
body {
margin :0;
padding :0;
font-family: Verdana, Tahoma, Arial, sans-serif;
font-size: 100%;
background: #F8F8FF;
text-align: center;
}
#wrapper {
margin: 0 auto;
width: 922px;
border: 2px solid #E8E6E6;
margin-top: 10px;
margin-bottom: 20px;
text-align: left;
background: #FFFFFF;
}
#content {
float: left;
border-left: 2px solid #E8E6E6;
background: #FFFFFF;
margin: 0px 0px 0px 197px;
padding-top: 4px;
padding-left: 16px;
padding-right: 5px;
padding-bottom: 5px;
width: 498px;
display: inline;
min-height: 1200px;
font-size: 76%;
}
[/code]
[html]
<table width="464" border="0">
<tr>
<td width="16">&nbs p;</td>
<td width="78">&nbs p;</td>
<td width="151"><st rong>Height</strong></td>
<td width="201" ><strong>Weight </strong></td>
</tr>
<tr>
<td> </td>
<td><strong>Mal e</strong></td>
<td>18 to 22 inches</td>
<td>33 to 45 pounds</td>
</tr>
<tr>
<td> </td>
<td><strong>Fem ale</strong></td>
<td>17 to 21 inches</td>
<td>22 to 35 pounds</td>
</tr>
</table>
[/html]
The page is not on the WEB, so I can't post the link. Sorry.
Any suggestion?
Thank you,
Ed
Comment