السلام عليكم
اخواني لدي مشكله في اتجاه الجدول الاول الى اليمين والثاني الى اليسار
المشكله من blockquote من المفترض انه يكون في اتجاه اليمين ولكن ياتي الاول من الاستعلام يمين والباقي كلها يسار
كود css
كود PHP:
dd {
margin: 0 20px 50px 0; padding: 0;
}
dd#one {
width: 280px;
background: #931277;
padding: 15px;
position: relative;
margin-left: 0px;
margin-right: auto;
}
#one .arrow {
width: 0;
height: 0;
line-height: 0;
border-top: 30px solid #931277;
border-left: 60px solid white;
border-right: 10px solid white;
position: absolute;
bottom: -30px;
right: 20px;
}
blockquote {
margin: 0 50px 50px 0; padding: 0;
}
blockquote#two {
width: 280px;
background: #eeeeee;
padding: 15px;
position: relative;
margin-left: auto;
margin-right: 0px;
}
blockquote#two .arrow {
width: 0;
height: 0;
line-height: 0;
border-top: 30px solid #eeeeee;
border-left: 10px solid white;
border-right: 60px solid white;
position: absolute;
bottom: -30px;
right: 220px;
}
كود php الاستعلام
كود PHP:
<?php
while($rows= mysql_fetch_array($result)){
$stateanswer=$rows['stateanswer'];
if($stateanswer =='q'){
?>
<blockquote id="two">
<p class="style4"><?php echo nl2br($rows['name']);?></p>
<span class="arrow"></span>
</blockquote>
<?php }
else{
?>
<dd id="one">
<p class="style3"><?php echo nl2br($rows['last']);?></p>
<span class="arrow"></span>
</dd><?php }} ?>
<br>
<br>
<td><form name="massage" method="post" action="massage.php?action=massage"></td>
<div align="center">
<table border="0" width="80%" dir="rtl" >
<tr>
<td>
<div align="center"><textarea rows="6" name="notauser" cols="50" size="20" style="color: #000000"></textarea>
</td>
</div>
<td>
<input type="submit" name="Submit" value=" إرسال " ></td>
</tr>
</table></div>
<br><br>