ציטוט:
נכתב במקור על ידי 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%; 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 לדיב האחרון או אחד אחר... תקרא על זה... :]