Позиционирането на див-ове е трудна работа...

xlebabarov

Registered
Здравейте, опитвам се да направя едно меню и както вече казах в по-долната тема (където дадох точка и не мога да пиша) ето това е кода:

Код:
 <!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>Untitled Document</title>
</head>
<style type="text/css">
body{
background-color: #33FF00;
}
.main_logo{
   width: 907px;
   height:115px;
   margin-left: auto;
   margin-right:auto;
   margin-top: 0px;
}
.navbar_desen{
   z-index: 1;
   float: right;
   background-color: #FF0000;
   background-repeat: no-repeat;
   width: 14px;
   height: 61px;
}

.navbar_back{
   z-index: 1;
   position: relative;
   float: right;
   background-color: #FF0000;
   background-repeat:;
   height: 61px;
   width: 569px;
   }
.malko_logo{
   z-index: 1;
   float: left;
   width: 324px;
   height:139px;
   margin-left: 0;
   margin-right:auto;
   background-color: #FF0000;
   background-repeat: no-repeat;
   }
.tekst{
   right:0px;
   top:0px;
}
.sadarjanie{
   width: 907px;
   height: 600px;
   margin-left: auto;
   margin-right: auto;
   background-color: FFFFFF;
   background-repeat: no-repeat;
}
.menlink{
   margin-bottom: 0px;
   margin-right: 0px;
   width: 20px;
   height: 52px;
   background-color: FFFFFF;
}
.tab{
z-index: 2;position: relative;float:right; background-color: #FFFFFF; background-repeat: no-repeat; width: 153px; height: 49px; background-position: center;
}
</style>
<body>
<div class="main_logo">
   <div style="height: 77px; width: 583px; float:right;"></div>
   <div class="malko_logo"></div>
   <div class="navbar_desen">
      <div class="tab"></div>
      <div class="tab"></div>
      <div class="tab"></div>
      <div class="tab"></div>
   </div>
   <div class="navbar_back"></div>
   
</div>
</body>
</html>

Защо белите табове излизат един под друг?

EDIT: намерих грешката... оправих се
 
appmaster каза:
Ползвай за тях css inline правилото. Така ще ти излизат един до друг ;)
Какво е то?
 

Back
Горе