
28-11-2005, 07:05
|
|
|
|
חבר מתאריך: 17.05.04
הודעות: 1,454
|
|
|
CSS - margin:auto - בעיה
שלום :} (מקווה שאני לא רושם יותר מדי בזמן האחרון :})
משום מה, זה נראה כאילו יש לזה שכל..
זה פועל מתי שזה רוצה ולא פועל מתי שזה לא רוצה..
כבר קרה לי כמה פעמים שזה עבד וכמה פעמים שלא..
אני ארשום מסמך דוגמא - שזה בכלל לא עובד :
קוד:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Login</title>
</head>
<body>
<div style="margin:auto;">
<div style="background-image:url('images/cellpic-1.jpg');font-size:10px;font-family:Arial, Tahoma, Narkisim;color:#000000;width:60%;height:18px;paddi ng-top:2px;font-weight:bold;letter-spacing:1px;" align="center">LOG IN</div>
<div style="background-color:#f6f6f6;width:60%;height:160px;font-size:10px;font-family:Arial, Tahoma, Narkisim;margin-top:0px;"><span>BLA BLA BLA</span><div id="registration" style="margin:auto;"><form method="post" action="<?= $_SERVER['PHP_SELF'] ?>"><label for="username">USERNAME : </label><input type="text" name="username" id="username" style="height:17px;border:1px solid #CCCCCC;" /><br/><label for="password">PASSWORD : </label><input type="password" name="password" id="password" style="height:17px;margin-top:5px;border:1px solid #CCCCCC;" /><input type="submit" name="submit" id="submit" value="Log" style="background-color:#f6f6f6;border:0px;" /></form></div></div>
</div>
</body>
</html>
מה הסיבה שזה לא עובד ובמסמכים אחרים זה כן עובד?
אם אתם צריכים את הקוד של המסמך שלי שבו זה כן עובד :
http://aaiiaa.t35.com/index.php
גם תגידו לי איך האתר :} אם בא לכם 
_____________________________________
EVERYTHING SHOULD BE MADE AS SIMPLE AS POSSIBLE, BUT NOT ONE BIT SIMPLER
ALBERT EINSTEIN
נערך לאחרונה ע"י Rs3k בתאריך 28-11-2005 בשעה 07:07.
|