Hallo!
Ich habe wieder ein Problem.
Wie bekomme ich das weiße Rechteckt zwischen dem Rahmen und der Hintergrundfarbe vom <p> weg? Der Text soll dabei nicht verschoben werden, weshalb es mit padding nicht klappt.
<html>
<head>
<title>test</title>
<style>
div {
width:100;
padding:3px;
border: 1px solid yellow;
}
p {
background-color:yellow;
}
</style>
</head>
<body>
<div>
<p>test
</p>
</div>
</body>
</html>
So soll es am Ende aussehen:
<html>
<head>
<title>test</title>
</head>
<body>
<table width="100">
<tr>
<td style="background-color:yellow;padding:3px">test
</td>
<tr>
</body>
</html>
Nach einem Tipp hier aus dem Forum versuche ich <DIV>, statt Tabellen zu benutzen. Habe aber noch kleine Startprobleme. :)
Danke.
Casimyr