css - table not showing properly inside div html -
i have problem table inside div. created 2 tables , goal have them next each other. ended 1 below other. tried play css as can, not experienced it. code here:
#contactdetails_table{ width: 500px; height: 190px; /* border: solid #234b7c 3px; */ background-color: #ffc3ce; border-radius: 15px; direction: rtl; float: left; color: white; font-size: large; position: relative; overflow: scroll; }
and code second table manages go below current one:
<table style="position:relative; float:left;" cellpadding="10" cellspacing="10"> <tr> <td>الايميل:</td> <td><?php echo $profiledetails->email; ?></td> </tr> <tr> <td>المدينة:</td> <td><?php echo $profiledetails->city; ?></td> </tr> <tr> <td>الهاتف:</td> <td><?php echo $profiledetails->telephone; ?></td> </tr> <tr> </tr> </table>
thanks :)
note: included first table:
<div id="contactdetails_table"> <table cellpadding="10" cellspacing="10" > <tr> <td>الاسم الكامل:</td> <td><?php echo $profiledetails->fullname; ?></td> </tr> <tr> <td>اسم المستخدم:</td> <td><?php echo $profiledetails->username; ?></td> </tr> <tr> <td>الجوال:</td> <td><?php echo $profiledetails->mobile; ?></td> </tr> <tr> <td>العنوان:</td> <td><?php echo $profiledetails->address; ?></td> </tr> </table> <table style="position:relative; float:left;" cellpadding="10" cellspacing="10"> <tr> <td>الايميل:</td> <td><?php echo $profiledetails->email; ?></td> </tr> <tr> <td>المدينة:</td> <td><?php echo $profiledetails->city; ?></td> </tr> <tr> <td>الهاتف:</td> <td><?php echo $profiledetails->telephone; ?></td> </tr> <tr> </tr> </table>
because second table after first one, won't next it. should either float first table right or reverse order tables come in markup.
Comments
Post a Comment