sven: CSS Font Styles verlieren innerhalb von Tabellen ihre Wirkung

Beitrag lesen

hi psy sonic,
eine lösung wäre auch das mit klassen zu machen:

<html>
<head>
<title>Titel der Datei</title>
<style type="text/css">
<!--
 body { font-family:Arial,sans-serif; font-size:20pt; }
-->
</style>
<style type="text/css">
<!--
 body.tabelle { font-family:Arial,sans-serif; font-size:20pt; }
-->
</style>
</head>
<body>
<p>

Dieser Text würde auf font-size:20pt reagieren

<table>
<tr>
<td class="tabelle">

Dieser Text nicht. Arial sind dennoch beide...

</td>
</tr>
</table>
</p>
</body>
</html>

oder auch so...

<html>
<head>
<title>Titel der Datei</title>
<style type="text/css">
<!--
td { font-family:Arial,sans-serif; font-size:20pt; }
-->
</style>
</head>
<body>
<p>

Dieser Text würde auf font-size:20pt reagieren

<table>
<tr>
<td>

Dieser Text nicht. Arial sind dennoch beide...

</td>
</tr>
</table>
</p>
</body>
</html>

es gibt da mehrere möglichkeiten um das selbe ziel zu erreichen.

mfg
sven