Проблемът ми е, че дива с ид chat искам да не е фиксирана височина, а да е висок колкото са високи другите дивове в него, защото като махна height главния див става много малък и не се фиксира с другите дивове с него...
<style type="text/css">
#chat {
width:500px;
height:73px;
background:skyblue;
position:relative;
margin-bottom:10px;
padding:5px;
border:1px solid grey;
border-radius:5px;
-moz-border-radius:5px;
}
#avatar {
width:67px;
height:67px;
background:white;
float:left;
padding:2px;
border:1px solid grey;
border-radius:5px;
-moz-border-radius:5px;
}
#text {
width:410px;
background:white;
float:right;
padding:5px;
color:grey;
font-family: georgia, arial, verdena;
text-align: left;
font-style: oblique;
font-size: 14px;
text-indent: 20px;
border:1px solid grey;
border-radius:5px;
-moz-border-radius:5px;
-moz-border-radius-bottomright:0;
}
#user {
width:100px;
height:18px;
background:#eee;
float:right;
margin:-1px 0px 0px 5px;
padding: 1px 2px 1px 2px;
border:1px solid grey;
-moz-border-radius-bottomleft:5px;
-moz-border-radius-bottomright:5px;
}
#points {
width:55px;
height:18px;
background:#eee;
float:right;
margin:-1px 0px 0px 5px;
padding: 1px 2px 1px 2px;
border:1px solid grey;
-moz-border-radius-bottomleft:5px;
-moz-border-radius-bottomright:5px;
}
#rank {
width:38px;
height:18px;
background:#eee;
float:right;
margin:-1px 0px 0px 5px;
padding: 2px 2px 0px 2px;
border:1px solid grey;
-moz-border-radius-bottomleft:5px;
-moz-border-radius-bottomright:5px;
}
</style>
echo "<div id=chat>
<div id=avatar>
<img src=$row1[avatar] width=67 height=67 border=0>
</div>
<div id=text>
$komentar
</div>
<div id=rank>
<img src=images/rank/$row1[rank].png width=34 height=14 border=0>
</div>
<div id=points>
<img src=images/points.png width=14 height=14 border=0><font color=red size=1> $row1[points]</font>
</div>
<div id=user>
<a href=index.php?p=profile&username=$row[avtor]><font color=blue size=2>$row[avtor]</font></a>
</div>
</div>";