Само дивовете и стиловете си ги оправи
<?php
echo "<div class='post' style='margin-top:50px; position:relative; top:-260px; left:0px;'>
<div id='W' style = 'background:url(bar.png) no-repeat; width:574px; height:40px; position:relative; top:-10px; left:3px; '><p style = 'position:relative; top:8px; left:20px; text-decoration:none; color: #202020; font-size:1em;'><b>Форма за контакти</b></p></div>
<p style='font-size:18px; color:red; padding:0 0 0 10px;'>Моля попълнете всички полета.</p>
<div class='entry' style='margin-left:8px;' >
<form method='POST' action='kontakti.php'> <br />
Вашето име: <input type='text' name='subject' style='width:250px; margin-left:40px; margin-bottom:10px;' /><br />
Вашият имейл: <input type='text' name='email' style='width:250px; margin-left:26px; margin-bottom:10px;' /> <br />
Вашият телефон: <input type='text' name='tel' style='width:250px; margin-left:13px; ' /><br /> <br />
Вашето съобщение: <br/><textarea name='message' cols='66' rows='10' ></textarea><br /><br />
<input style = ' font:12px Arial; width:70px; background:#cccccc; color: #000; height:21px; padding: 0 0 10px 0; margin:0 auto; ' type='submit' name='submit' value='Изпрати' >
<input style = ' font:12px Arial; width:70px; background:#cccccc; color: #000; height:21px; padding: 0 0 10px 0; margin:0 auto; ' type='reset' value='Изчисти' >
</form>
</div>
<div class='meta1' style='margin-top:10px;'>
</div>
</div>";
if(isset($_POST['submit'])){
$sendto = "teroristd@abv.bg";
$subject = stripslashes($_POST["subject"]);
$email = stripslashes($_POST["email"]);
$tel = stripslashes($_POST["tel"]);
$message = stripslashes($_POST["message"]);
if (empty($subject))
{
echo "<p style='position:relative; top:-280px; left:10px; margin-bottom:10px; font-size:1.2em; color:red;'>Не сте въвели име.</p>";
}
elseif (!preg_match('/[a-z0-9_\.]+@[a-z0-9]+\.[a-z]{2,4}$/', $email))
{
echo "<p style='position:relative; top:-280px; left:10px; margin-bottom:10px; font-size:1.2em; color:red;'>E-mail $email не е валиден!</p>";
}
elseif(empty($tel))
{
echo "<p style='position:relative; top:-280px; left:10px; margin-bottom:10px; font-size:1.2em; color:red;'>Моля въведете телефон.</p>";
}
elseif(empty($message)){
echo "<p style='position:relative; top:-280px; left:10px; margin-bottom:10px; font-size:1.2em; color:red;'>Моля въведете съобщение.</p>";
}
else
{
$headers = 'From:' . $email . "\r\n" .
'Reply-To:' . $email . "\r\n" .
'X-Mailer: PHP/' . phpversion();
@mail($sendto, $subject, $message, $headers);
echo "<p style='position:relative; top:-280px; left:10px; margin-bottom:10px; font-size:1.2em; color:black;'>Съобщението е изпратено успешно.</p>";
}
}
?>