これは、一部の人にとっては非常に単純な質問かもしれません。しかし、divをスマートに配置する方法を知りたいです。ここに私が望んでいる結果があります
したがって、基本的にユーザーはPOIの検索を行い、phpのDBでそれを選択してから、画像のように結果を表示する必要があります。
非常に一般的であるため、適切な場所などに div を配置するにはどうすればよいですか?
ありがとう
divs
またはtables
または両方を使用できます。データをどのように構成するかによって異なります。
編集:マークアップを追加
<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 -->