View Single Post
ישן 30-01-08, 15:05   # 5
reXtea
חבר מתקדם
 
reXtea's Avatar
 
מיני פרופיל
תאריך הצטרפות: Dec 2006
מיקום: באר שבע
גיל: 31
הודעות: 374
שלח הודעה באמצעות MSN אל reXtea

reXtea לא מחובר  

ציטוט:
נכתב במקור על ידי Shon12 צפה בהודעה
יש למישהו מושג למה ה - width שהגדרתי לא עובד פה:
HTML קוד:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
        <head>
<style type="text/css">
	html,body {
	margin: 0;
	padding: 0;
	font-family: arial;
	font-size: 11px;
	overflow-x: auto;
	}
	.menu {
	width: 700px;
	direction: rtl;
	margin: 0 auto 0 auto;
	padding: 0;
	}
</style>
	<title></title>
	<meta http-equiv="content-type" content="text/html; charset=windows-1255" />
        </head>
<body>
	<div class="menu">
		<div style="width: 100&#37;; text-align: center;">
			<div style="display: inline; width: 20%;">טקסט</div>
			<div style="display: inline; width: 20%;">טקסט</div>
			<div style="display: inline; width: 20%;">טקסט</div>
			<div style="display: inline; width: 20%;">טקסט</div>
		</div>
	</div>
</body>
    </html>
בעקרון WIDTH עושה המון בעיות עם div בTABLES הוא עובד יותר טוב ... לדעתי תגדיר גם על הDIV שמעליו WIDTH 100%...

ולשאלה שלך או שתעשה display: inline או float:right ואז תעשה clear: both לדיב האחרון או אחד אחר... תקרא על זה... :]
__________________
Amir fridman
-----------------------
Professional website developer.
xhtml, css, javascript, xml, ajax, php, mysql
  Reply With Quote