problemer med kant i Iframe eller css?
jeg har en hjemmeside med en iframehttp://www.fireexit.dk/php/billed.php
<iframe src="forside.php" name="Main" id="IFRAMEID" height="400px" width="544px" frameborder="0"></iframe></td>
og inde i iframen er siden forside.php
-----
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<link href="css2.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="boks">
<h1>Nyheder</h1>
<?
$db = mysql_connect("localhost","db","pw");
mysql_select_db("db",$db);
$foresp = mysql_query("SELECT dato, overskrift, tekst FROM nyheder ORDER BY dato DESC LIMIT 0, 2") or die(mysql_error());
while($data = mysql_fetch_array($foresp)){
echo date("j/n - Y", $data["dato"]);
echo " - ";
print("<b>" . $data[overskrift]."</b>");
echo "<br><p>" . $data["tekst"] . "</p><br><br>";
}
?>
</div>
<p>her skal være tekst</p>
</body>
</html>
-----
mit stylesheet ser sådan her ud:
-----
body {
background-color: #D2D1D1;
background-image: url("/php/image/exit.gif");
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
margin-top: 10px;
margin-right: 10px;
margin-bottom: 10px;
margin-left: 10px;
}
.style {
font-family: Times New Roman, Courier, Helvetica, sans-serif;
color: #FFFFFF;
background-color: #716B6B;
}
p {
border-width: 2px;
border-color: black;
text-indent: 30px;
}
div.boks {
border-width: 2px;
border-color: #000000;
overflow: auto;
width: 250px;
height: 250px;
}
h1 {
font-family: arial, verdana, sans-serif;
font-weight: bold;
font-size: 20px;
}
----------
Jeg vil gerne have en boks rundt om min nyhedsboks, men kan ikke få den til det. Hvad gør jeg forkert?
