Forum Moderators: open
And my text does seem to be rendered in 10pt Verdana, however,
Inside of a TABLE, everything seems to revert back to browser default.
Doing something like
td,tr {font-size: 8pt; }
corrected it, but, why doesn't a table inherit the font-size specified?
I hope I worded this right, this is all new to me!
I don't have access to my code right now, but I believe I've also used:
table {font-size:10px} Note that you can also use "input", and give it at the very least font/color/size definitions.
You said IE and Opera, and I also noticed that Mozilla 1.1 did this as well, which I thought was supposed to have the best CSS engine to date?? leading me to believe this may be correct behaviour? I can't find anything that would say why though..
I don't have access to my code right now, but I believe I've also used:
table {font-size:10px}
(Don't shoot me, if I'm wrong...)
Note that you can also use "input", and give it at the very least font/color/size definitions.
There is a lot of information out there on font sizes and inheritance. A quick search on the phrase will show you that there are problems in the various browsers. You just need to test each time and make sure that your styles are cross browser friendly.
I'd read about the <h> problem... and you say that IE has problems with inheritance from the body to tables, but I seem to be seeing this problem with Mozilla 1.1, Opera 6, and IE 6.. Unless I've done something wrong and am not really seeing a problem, but the standard behaviour. And being such a novice at this, that wouldn't surprise me.
Now to learn what DIV and SPAN are for.. :)
The most easy way is to specify different CSS classes for <td> and block-level elements (<div> and <p>). You can also skip text declaration for <td> if you place all the content into blocks:
...
<td><p class="something"> c o n t e n t </p></td>
...
This is the most safe way to make your page look as expected, and look as expected in all browsers.
It should be pointed out that while this is normal behavior, it is not correct behavior.
Sigh.. Are they simply trying to bias so much against table that you won't want to use them at all? :)
I'm not really using a table for layout/positioning but for what they were meant for (I think?) displaying a bunch of data in tabular fashion. Is even this against the spirit of CSS? Should I be doing something different?
Back to the expirimentation :) Thanks for everyones comments!