Forum Moderators: not2easy
I am getting a larger font size in td tags than I am in the p tags with the same font-size. In order to make them look the same as those in the td tags I have to put a smaller font size in the td.
body
{
font-family: Verdana, Helvetica, Sans-Serif;
color: #000000;
font-size: 0.9em;
text-align: center;
line-height: 1.4em;
margin: 0px;
}
p
{
font-size: 0.9em;
line-height: 1.4em;
}
th
{
text-align: left;
font-size: 0.8em;
line-height: 1.4em;
font-weight: bold;
}
td
{
font-size: 0.8em;
line-height: 1.4em;
}
Any ideas?
p.s. This happens in IE, Mozilla and Opera.
Best regards,
Andrew Wilson.
I think I've worked out what's happening. The td tags do not seem to inherit from the body tag, but the p tags do. So the p tags are relative to the body tag, whereas the td tags are relevant to the default.
I think I'll just have to use my smaller size for the td tags.
Oh well.
Best regards,
Andrew.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> Oh, any by the way, you should only really define the language with the two-letter language code unless you have different versions for the language variant (en-GB, en-US, etc.)
<html lang="en">