أولاً يا صديقي أنصحك تستخدم
Aptana Studio IDE
ثانيا،
مسألة توسيط الصفحة هذي من أكثر المشاكل التي يواجهها المبتدئين بالـCSS. والحل بسيط جداً:
كود بلغة HTML:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css">
#main {
border: 5px solid #7c6d5a;
padding: 5px;
width: 720px;
margin:0 auto; /* Here is the secret */
}
</style> </head> <body> <div id="main">
Best regards from your friend omar :)
</div> </body> <!-- http://www.omardo.com --> </html> أتمنى أنه ينفع

. بس لا تجربه على Intenet Explorer 5 وتقوللي ما يشتغل

. وشغال على المتصفحات الحديثة كلها إن شاء الله ^^.
إنت إنتبه على كود CSS وبس واللي هو: والسطر الأخير هو المهم
كود PHP:
#main {
border: 5px solid #7c6d5a;
padding: 5px;
width: 720px;
margin:0 auto; /* Here is the secret */
}