ich arbeite gerade ein einer Tabelle die "Pixelgenau" sein muss:
wenn ich also folgenden Code habe:
Code: Alles auswählen
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
</head>
<style>
table
{ border-collapse: collapse; border: none; }
td
{ background-color: green; padding:2px; border: solid 2px red; }
div
{ width: 4px; padding: 0px; border: solid 2px yellow; display: block;
height: 4px; }
</style>
<body>
<table>
<tr>
<td><table>
<tr>
<td><div></div></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
nämlich das alle Rahmen-Quadrate 2px dick sind, und das innere Quadrat 4x4px groß ist.
Im Google-Chrome auch richtig!
Nur FireFox macht wieder probleme -.-
Im FireFox ist der außere grüne Rahmen nur 1px Breit, wieso ?
Es steht doch eindeutig in CSS das ich 2px Padding haben will -.-