This is maybe a really simple question for some of you. But I would like to know how to place div in a smart way. Here the result i want to have
So basically a user do a search of POI, and I select it in the the DB on php and then i have to display the result as in the image.
As is quite generic, how can place the div at the right place etc.. ?
THanks
You can either use a divs
or tables
or both. Depending on how you want to structure your data.
Edit: Added markup
<style type="text/css">
<!--
.div-block {
width:500px;
height:auto;
overflow:hidden;
clear:both
}
-->
</style>
<div class="div-block">
<table width="480" border="0" cellspacing="0" cellpadding="0">
<tr>
<th scope="col" colspan="4">Information</th>
</tr>
<tr>
<Td><strong>Address</strong></Td>
<td>(info)</td>
<Td><strong>Telephone</strong></Td>
<td>(info)</td>
</tr>
<tr>
<td><strong>Address 2</strong></td>
<td>(info)</td>
<td><strong>Mobile</strong></td>
<td>(info0)</td>
</tr>
<Tr>
<th scope="col" colspan="4">Details</th>
</Tr>
<Tr>
<td>Site Web</td>
<td>(info)</td>
<td>Hour</td>
<td>(info)</td>
</Tr>
<Tr>
<td colspan="2">Mail</td>
<td colspan="2">(info)</td>
</Tr>
</table>
</div>
<!-- activity -->