Billed udvider sig ikke
Jeg er igang med og lave en hjemmeside i html / php / mysql !http://insane-danes.amok.dk/index.php
som i kan se så udvider mit billede sig ikke (nedad) når jeg skriver noget.. Kun hvis jeg laver en <br> i toppen..
Index.php:
<? include("db.php"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Allan Simonsen</title>
<link rel="stylesheet" href="allan.css">
<meta name="generator" content="TSW WebCoder">
</head>
<body bgcolor="#ffffff" background="gfx/bg.jpg" text="#ffffff" link="#ffffff" vlink="#ffffff" alink="#ffffff">
<div id="Layer1" style="Z-INDEX: 1; LEFT: 0px; WIDTH: 127px; POSITION: absolute; TOP: 0px; HEIGHT: 381px">
<IMG src="gfx/allan.jpg">
</div>
<div id="Layer2" style="Z-INDEX: 1; LEFT: 379px; WIDTH: 127px; POSITION: absolute; TOP: 149px; HEIGHT: 381px">
<IMG src="gfx/ship.jpg">
</div>
<div id="Layer3" style="Z-INDEX: 1; LEFT: 379px; WIDTH: 127px; POSITION: absolute; TOP: 292px; HEIGHT: 381px">
<OBJECT id=menu2
codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0
height=150 width=150 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME="_cx" VALUE="3969"><PARAM NAME="_cy" VALUE="3969"><PARAM NAME="FlashVars" VALUE="3969"><PARAM NAME="Movie" VALUE="menu2.swf"><PARAM NAME="Src" VALUE="menu2.swf"><PARAM NAME="WMode" VALUE="Transparent"><PARAM NAME="Play" VALUE="0"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE=""><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE="always"><PARAM NAME="Scale" VALUE="ShowAll"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE="CCCCCC"><PARAM NAME="SWRemote" VALUE=""> <EMBED src="menu2.swf" quality=best wmode=transparent bgcolor=#CCCCCC WIDTH="150" HEIGHT="150" NAME="menu2" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>
</div>
<div id="Layer4" style="Z-INDEX: 1; LEFT: 529px; WIDTH: 127px; POSITION: absolute; TOP: 293px; HEIGHT: 381px">
<IMG src="gfx/pic-right.jpg">
</div>
<div id="Layer5" style="Z-INDEX: 1; LEFT: 72px; WIDTH: 1px; POSITION: absolute; TOP: 438px; HEIGHT: 359px">
<table border="0" cellpadding="0" cellspacing="0" width="460">
<tr>
<td background="gfx/contentfill.jpg">
<br><br><br><br><br><br><br><br><br><br><br><br>
<font style="Z-INDEX: 100; LEFT: 10px; WIDTH: 445px; POSITION: absolute; TOP: 20px" >
<h5><u><center>News</center></u></h5><br>
<table width="444">
<?
if (!$id) {
$count = 1;
$res = mysql_query("SELECT * FROM news ORDER BY id DESC");
while ($row = mysql_fetch_array($res)) { ?>
<tr>
<td width=444><p align=center><font color=#252B36 size=1 face=Verdana><b><a href="index.php?id=<?php echo $row['id']; ?>"><? echo $row['head']; ?> - <? echo $row['date']; ?></a></b></font></td>
</tr><?
} ?>
</table>
<?
}
else { ?>
<?
$res = mysql_query("SELECT * FROM news WHERE id = '$id'");
while ($row = mysql_fetch_array($res)) { ?>
<table bgcolor=#252B36 cellspacing=1 cellpadding=1 width="444">
<tr>
<td width=444 colspan=2 background="gfx/tablebg.jpg"><p align=center><font color=#252B36 size=1 face=Verdana><b><? echo $row['head']; ?></b></font></td>
</tr>
<tr>
<td width=444 colspan=2 background="gfx/tablebg.jpg"><font color=#252B36 size=1 face=Verdana><? echo ereg_replace("\n", "<br />\n", $row['body']); ?></font></td>
</tr>
<tr>
<td width=444 colspan=2 background="gfx/tablebg.jpg"><p align=right><font color=#252B36 size=1 face=Verdana>d. <? echo $row['date']; ?></font></td>
</tr>
</table><br>
<table width="444">
<tr>
<td width=444><p align=center><font color=#252B36 size=1 face=Verdana><a href="index.php" target="I1"><b>Tilbage</b></a></font></td>
</tr>
</table>
<?php
}
}
?>
</font>
</td>
</tr>
</table>
</div>
</body>
</html>
<-- jeg blir altså nødt til og lave mange <br> hver gang.. men det kan jeg jo ikke bare sådan gøre.. Da den helst selv skulle gøre det.. Det kan sikkert fixes via php.. men der må være en måde i html så den slet ikke skal bruge alle de <br>'er ???