Images in two columns

This is where you share YOUR scripts with others

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Sun Feb 10, 2013 11:10 am

Images in two columns

Postby cheesecake86 » Sun Feb 10, 2013 11:13 am

Can anybody help me to get this into two columns??

Code: Select all

<div id="welcome">
<div id="homeCols">
  <div id="catCol">
      <b class="orageBG">
      <b class="orageBG5"></b>
      <b class="orageBG4"></b>
      <b class="orageBG3"></b>
      <b class="orageBG2"><b></b></b>
      <b class="orageBG1"><b></b></b></b>


<div id="newestCol">

<h3>Newest Listings</h3>
$sql = "SELECT * FROM forsale_content WHERE status='online' ORDER BY id DESC LIMIT 15";
$result = mysql_query($sql);
echo "<table><tr>";
    $count = 1;

while ($record = mysql_fetch_object($result)) {
<div id="newestBlock">
<div id="newTitle">
<a href="?q=detail&amp;id=<? echo "$record->id";?>">   
<img  src="<? echo "$record->photo";?>" width="300" />   
  <?php if($record->price != "") { ?>
  <?php } ?>
if ($count++ % 2 == 0) {
            echo "</tr><tr>";
    echo "</tr></table>";

<div id="newDate"></div>


User avatar
New php-forum User
New php-forum User
Posts: 16
Joined: Wed Feb 27, 2013 2:49 am
Location: Dhaka, Bangladesh

Re: Images in two columns

Postby kiash001 » Thu Feb 28, 2013 9:00 pm

try like this
<b class="orageBG col">



or cheque it out [url][/url]

Return to “Your Scripts”

Who is online

Users browsing this forum: No registered users and 3 guests