Can anyone confirm if I am being an idiot, or is this a bug in the CSS
implementation of Netscape 7.x/Mozilla 1.4 ...
give the following single HTML:
<html>
<head>
<style type="text/css">
<!--
caption {
font: bold 20px;
}
-->
</style>
</head>
<body>
<table border=1>
<caption>g'da y</caption>
<tr>
<td>1a</td>
<td>1b</td>
<td>1c</td>
<td>1d</td>
</tr>
</table>
</body>
</html>
IE will display correctly, and the caption of "g'day" is 20 point, but
Netscape seems to ignore it. and I get the standard font size.
If I add a style called "mycaption' as:
..mycaption {
font-size: 20px;
}
and change the <caption> to use this like:
<caption class="mycaptio n">g'day</caption>
Then both browsers (IE and Netscape/Mozilla) display correctly. So is IE
displaying correctly because it is being more "lenient" is something I am
doing wrong, or is Netscape just a pile of s**t. Personally I suspect the
latter, but will reserve judgement until I hear from one of you experts.
regards,
-Randall
ps, I should mention I also tried a more specific selector like
table caption {
font: bold 20px;
}
but that did not help either.
implementation of Netscape 7.x/Mozilla 1.4 ...
give the following single HTML:
<html>
<head>
<style type="text/css">
<!--
caption {
font: bold 20px;
}
-->
</style>
</head>
<body>
<table border=1>
<caption>g'da y</caption>
<tr>
<td>1a</td>
<td>1b</td>
<td>1c</td>
<td>1d</td>
</tr>
</table>
</body>
</html>
IE will display correctly, and the caption of "g'day" is 20 point, but
Netscape seems to ignore it. and I get the standard font size.
If I add a style called "mycaption' as:
..mycaption {
font-size: 20px;
}
and change the <caption> to use this like:
<caption class="mycaptio n">g'day</caption>
Then both browsers (IE and Netscape/Mozilla) display correctly. So is IE
displaying correctly because it is being more "lenient" is something I am
doing wrong, or is Netscape just a pile of s**t. Personally I suspect the
latter, but will reserve judgement until I hear from one of you experts.
regards,
-Randall
ps, I should mention I also tried a more specific selector like
table caption {
font: bold 20px;
}
but that did not help either.
Comment