Board index   FAQ   Search  
Register  Login
Board index PHP Your Scripts

Images in two columns

This is where you share YOUR scripts with others

Moderators: macek, egami, gesf

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">
<H3>&nbsp;</H3>
</div>
<div id="homeCols">
  <div id="catCol">
    <div>
      <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>


</div>

<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>
</div>
<div id="newDate"></div>
</div>
</div>

</div>
cheesecake86
New php-forum User
New php-forum User
 
Posts: 1
Joined: Sun Feb 10, 2013 11:10 am

Re: Images in two columns

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

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

style:

.col{
float:left;
}

or cheque it out [url]960.gs[/url]
User avatar
kiash001
New php-forum User
New php-forum User
 
Posts: 16
Joined: Wed Feb 27, 2013 2:49 am
Location: Dhaka, Bangladesh


Return to Your Scripts

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.