döngü göremedim döngü süz yapacaksan zaten basit
<div style="width:400px;">
<div style="float:left;width:100px;">asd</div>
<div style="float:left;width:100px;">asd</div>
<div style="float:left;width:100px;">asd</div>
<div style="float:left;width:100px;">asd</div>
<div style="float:left;width:100px;">asd</div>
<div style="float:left;width:100px;">asd</div>
<div style="float:left;width:100px;">asd</div>
<div style="float:left;width:100px;">asd</div>
</div>
gibi gibi yapabilirsiniz 4 tane yan yana dizer bu 400 / 100 = 4 veya 4*100 = 400 den dolayı
PHP ile Yan yana listeleme
14
●11.244
- 17-01-2009, 12:24:52Pardon hocam oraya dögüyü koymamışım , döngülü hali budur ve alt alta sıralıyorum bu şekilde.Ama sizin verdiğiniz div leri entegre edemedim.
<style type="text/css"> <!-- body { background-repeat: no-repeat; } .style1 { font-family: Arial, Helvetica, sans-serif; font-weight: bold; } .style2 {font-family: "Times New Roman", Times, serif} .style3 {font-family: Verdana, Arial, Helvetica, sans-serif} } div.tab{width:100%; float:left;} div.tab a{width:33%; float:left; color:black;} --> </style> <?php include ("ayar.php"); $sql=mysql_query("select * from paket"); while ($yaz=mysql_fetch_array($sql)){ $id=$yaz['id']; $adi=$yaz['paket_adi']; $kisi=$yaz['kisi_sayisi']; $fiyat=$yaz['fiyat']; ?> <table width="18%" border="1" cellpadding="0" cellspacing="0" bordercolor="#999999"> <tr> <td height="45" background="resimler/paket.jpg"> <?php echo "<strong><font color='white'>$adi</font></strong>";?></td> </tr> <tr> <td align="center" background="resimler/paket_alt.jpg"><span class="style1">Özellikler</span></td> </tr> <tr> <td height="93" align="center" valign="top" background="resimler/paket_alt.jpg"><?php echo "$kisi";?><span class="style2"><span class="style3">+2 Oyuncu Sayisi <br /> Amx Mod<br /> sXe Anti Hile</span> <br /> </span><br /> <?php echo "<font color='red'>$fiyat</font>";?> TL/AY</td> </tr> <br /> <tr> <td align="center"><a href="siparis.php?id=<?php echo "$id" ;?>"><img src="resimler/siparis.jpg" width="200" height="40" border="0" /></a></td> <?php }?> </tr> </table> - 21-01-2009, 22:04:25Üyeliği durduruldu<style type="text/css">
<!--
body {
background-repeat: no-repeat;
}
.style1 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.style2 {font-family: "Times New Roman", Times, serif}
.style3 {font-family: Verdana, Arial, Helvetica, sans-serif}
}
.tasiyici { width:100%; }
.bolut { float:left;width:33%; }
div.tab{width:100%; float:left;}
div.tab a{width:33%; float:left; color:black;}
-->
</style>
<div class="tasiyici">
<?php
include ("ayar.php");
$sql=mysql_query("select * from paket");
while ($yaz=mysql_fetch_array($sql)){
$id=$yaz['id'];
$adi=$yaz['paket_adi'];
$kisi=$yaz['kisi_sayisi'];
$fiyat=$yaz['fiyat'];
?>
<div class="bolut">
<table width="18%" border="1" cellpadding="0" cellspacing="0" bordercolor="#999999">
<tr>
<td height="45" background="resimler/paket.jpg"> &nb sp;   ; & nbsp; &nb sp; <?php echo "<strong><font color='white'>$adi</font></strong>";?></td>
</tr>
<tr>
<td align="center" background="resimler/paket_alt.jpg"><span class="style1">Özellikler</span></td>
</tr>
<tr>
<td height="93" align="center" valign="top" background="resimler/paket_alt.jpg"><?php echo "$kisi";?><span class="style2"><span class="style3">+2 Oyuncu Sayisi <br />
Amx Mod<br />
sXe Anti Hile</span> <br />
</span><br />
<?php echo "<font color='red'>$fiyat</font>";?> TL/AY</td>
</tr>
<br /> <tr>
<td align="center"><a href="siparis.php?id=<?php echo "$id" ;?>"><img src="resimler/siparis.jpg" width="200" height="40" border="0" /></a></td>
</div>
<?php }?>
</div>
</tr>
</table> - 21-01-2009, 22:04:57Üyeliği durduruldu<style type="text/css">
<!--
body {
background-repeat: no-repeat;
}
.style1 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.style2 {font-family: "Times New Roman", Times, serif}
.style3 {font-family: Verdana, Arial, Helvetica, sans-serif}
}
.tasiyici { width:100%; }
.bolut { float:left;width:33%; }
div.tab{width:100%; float:left;}
div.tab a{width:33%; float:left; color:black;}
-->
</style>
<div class="tasiyici">
<?php
include ("ayar.php");
$sql=mysql_query("select * from paket");
while ($yaz=mysql_fetch_array($sql)){
$id=$yaz['id'];
$adi=$yaz['paket_adi'];
$kisi=$yaz['kisi_sayisi'];
$fiyat=$yaz['fiyat'];
?>
<div class="bolut">
<table width="18%" border="1" cellpadding="0" cellspacing="0" bordercolor="#999999">
<tr>
<td height="45" background="resimler/paket.jpg"> &nb sp;   ; & nbsp; &nb sp; <?php echo "<strong><font color='white'>$adi</font></strong>";?></td>
</tr>
<tr>
<td align="center" background="resimler/paket_alt.jpg"><span class="style1">Özellikler</span></td>
</tr>
<tr>
<td height="93" align="center" valign="top" background="resimler/paket_alt.jpg"><?php echo "$kisi";?><span class="style2"><span class="style3">+2 Oyuncu Sayisi <br />
Amx Mod<br />
sXe Anti Hile</span> <br />
</span><br />
<?php echo "<font color='red'>$fiyat</font>";?> TL/AY</td>
</tr>
<br /> <tr>
<td align="center"><a href="siparis.php?id=<?php echo "$id" ;?>"><img src="resimler/siparis.jpg" width="200" height="40" border="0" /></a></td>
</div>
<?php }?>
</div>
</tr>
</table>
gibi yapabilirsin