Разместване при различните резолюций

JusT

Registered
Плс помогнете ето това ми кода на index.php
Код:
<?
session_start();
include "config.php";
$username = $_SESSION['username'];
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>RoqL</title>
<style>
body {

margin-top:-375px;
color: #000;
font: 18px Comic Sans MS, georgia, arial, verdana, sans-serif;
background-color:#e6e6e6;
}
#b {z-index:10px; float:left;}
#bizon { margin:-980px 0 0 200px; font: 25px Comic Sans MS, georgia, arial, verdana, sans-serif; }
#krava { margin:-980px 0 0 200px; font: 25px Comic Sans MS, georgia, arial, verdana, sans-serif; }
#text { margin:-49px 0 0 -274px; font: 25px Comic Sans MS, georgia, arial, verdana, sans-serif; position:relative;}
#ss { margin: -100px 0 0 -310px;}
a:link
{
   color: #000;
   text-decoration: none;
}

a:visited
{
   text-decoration: none;
   color: #000;
}

a:hover
{
   color: #000;
}

a:active
{
   color: #000;
}

</style>
</head>


<body>

   <div style="margin:360 0 0 0; ">

   <div style="background: url('images/background.gif') no-repeat; width:1024px; height: 1280px; margin: 0px auto;"></div>
<div style="margin:-1005px 0px 400px 375px; ">

   <div style="background: url('images/cont.gif') no-repeat; height:684px; widht: 556px; margin: 100px 0 0 0;"></div>
   <div style="margin: -630px 0 0 60px ;">
   <div style="background: url(images/top.gif) no-repeat;widht: 565px; height: 25px;"></div>
   <div style="background: url(images/left.gif) no-repeat; width:20px; height:367px; margin:0 1000px 0 0px;"></div>
   <div style="margin:-372px 0px 0 15px; background: url(images/mid.gif) no-repeat; width: 565px; height: 365px;">   
   </div>
   <div style="background: url(images/bot.gif) no-repeat; widht:566px; height:25px;"></div>
   <div style="margin:-390px 0px 0px 545px; background: url(images/right.gif) no-repeat; widht:20px; height:367px;" ></div>
   </div>
   </div>
   
   </div>




<?
echo" <table width='550px'  style=' margin:-770px 0 0 440px; '>";


 $query = mysql_query("SELECT * FROM novina") or die (mysql_error());
 $broi = mysql_num_rows($query);
 $result = mysql_query("SELECT * FROM novina ORDER BY id DESC LIMIT 1") or die (mysql_error());
while($data = mysql_fetch_assoc($result)) {
echo "<td>Заглавие: $data[title]</td>
</tr>
<tr>
<td>Новина ";
echo "<img id='b' src='$data[pic]' />$data[text]</td>
</tr>
<tr><td align='right'>Автор: $data[avtor]</td></tr>

";
if($data[avtor] == $username) {
echo
 "

<tr><td><a href='edit.php?id=$data[id]'>Редактирай</а>
<a href='delete.php?id=$data[id]'>Изтрий</а></td></tr></table>";
}
echo "<table style='margin: -300px 0 0 400px;'>
<tr><td>Трейлър: <embed src='http://dtrailer.com/dplayer.swf' width='470' height='280' allowscriptaccess='always' allowfullscreen='false' flashvars='image=$data[clip]'></td></tr>
</table>";
echo "<table style='margin:10px 0 0 400px;'>
	<tr><td><span style='margin:390px 500px 0 0;'>© 2009 Всички права са запазени.NSubkov, KDT</span></td></tr></table>";
echo "<table width='550px'  style='  margin:-670px 0 0 450px; '>
<tr><td><div id='text'><a href='contacts.html'>За контакти</a></div></td></tr>
<tr><td><img id='ss' src='images/menu.gif' alt='menu' /></td></tr>
</table>";


}


if ($username) {
echo "<div id='bizon'><a href='addnews.php'>Добави новина</a>
<a href='logout.php'>Изход</a></div>";

}
else {
echo "<div id='krava'><a href='login.php'>Login</a>";
}


?>	

   </body>
   </html>
 

Горе