<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>توسيط الصفحة بدون جافا سكريبت</title>
<style type="text/css">
#cent{
height:300px;
width:500px;
background-color: #960;
}
</style>
</head>
<body>
<div align="center">
<div id="cent">
النص هنا
</div>
</div>
</body>
</html>توسيط الصفحة بدون الجافاسكريبت
الفيل الطائر كتب:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>توسيط الصفحة بدون جافا سكريبت</title> <style type="text/css"> #cent{ height:300px; width:500px; background-color: #960; } </style> </head> <body> <div align="center"> <div id="cent"> النص هنا </div> </div> </body> </html>
/index.php?showtopic=227523 إذا أردت الصحيح عليك قراءة التالي
فالطريقة التي ذكرتها لا تعمل على جميع المتصفحات
تم تعديل هذه المشاركة بواسطة cornerofart في 4 سبتمبر 2010 في 21:07
Submit you design
hereالطريقه شغاله 100 % على كل المتصفحات حتى المرحوم (ie6)
ياريت تجربها قبل ان تحكم عليها
الطريقة صحيحة بإذن الله
مع الانتباه إلى أن جميع الابناء سيرثون التوسيط إن لم تحدد لهم الـ alignment الخاصة بهم
جزاك الله خيراً
تم تعديل هذه المشاركة بواسطة MoHaMMaD Pro في 5 سبتمبر 2010 في 07:15
Everything will be fine when we TALK LESS, DO MORE