Where on this index page can I modify the space between the thumbs?? I'd like them to be closer to each other. Thanks. <? require "include/connect.php"; ?> <style> .style1 { color:#191970; } .style2 { color:#8b0000; } </style> <div align="center"> <table width="57%" style="border:1 solid black" bgcolor="ivory"> <tr align="right" style="color:red;font-size:14pt;"><td><a href="http://mydomain.com/videos/index.php?cat=&curpage=3&st=0&ed=12">Most Recent</a></td> <td><a href="index.php?mv=1">Most Viewed</a></td><td><a href="index.php?mv=3">Top Rated</a></td><td><a href="index.php">View All</a></td></tr> </table> <br> <br> <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" height="460" width="60%"> <tr valign="top"><td> <? //------------- function ArrivalDate ($days) { $curdate = mktime(0,0,0,date("m"),date("d"),date("Y")); $estimatedarrival = date(86400 * $days); # 1 day * 12 days... (This is a true estimate... $finaldate = date("Ymj", $curdate + $estimatedarrival); //$da = date('j-m-Y'); return $finaldate; } /*function DateToNum(sdate) { DateToNum=year(sdate) & right("00"&month(sdate),2) & right("00"&day(sdate),2) End Function Function NumToDate(sdate) NumToDate=left(sdate,4) & "/" & mid(sdate,5,2) & "/" & right(sdate,2) End Function*/ $mostv=$_REQUEST['mv']; //echo $mostv; if ($mostv==1) { $mav = mysql_query("select max(viewed) from videtails"); $ary = mysql_fetch_array($mav); //echo $ary[0]; //minimum viewed $arym=$ary[0]-4; //$res =mysql_query("select * from videtails where viewed between $arym and $ary[0]"); } //------------------ $curpage= $_REQUEST['curpage']; if(!$curpage) $curpage =1; if($mostv==1) { $res =mysql_query("select * from videtails where viewed between $arym and $ary[0]"); } elseif($mostv==2) { //Date from two days before; $da = date('Y-m-d'); $mdate = date("d")-1; //$da = strtr($da,"-","") //$mdate = strtr($mdate,"-","") //echo "select * from videtails where curdate between '$mdate' and '$da'"; $res =mysql_query("select * from videtails where curdate between '$mdate' and '$da'"); } elseif ($mostv==3) { $res =mysql_query("select * from videtails where finrating between 3 and 5 order by finrating desc"); } else { $res =mysql_query("select * from videtails"); } $num = 0; if($res) $num = mysql_num_rows($res); if($num>0) { $ed = 12; $st = ($curpage - 1) * 12; if(($st+$ed)>$num) $ed = $num-$st; // echo "select * from products where Category='$cat' limit $st,$ed"; if ($mostv==1) { $res =mysql_query("select * from videtails where viewed between $arym and $ary[0] limit $st,$ed"); } elseif($mostv==2) { //$mdate =date("d")-1; $res =mysql_query("select * from videtails where curdate between '$mdate' and '$da' limit $st, $ed"); } elseif($mostv==3) { $res =mysql_query("select * from videtails where finrating between 4 and 5 order by finrating desc limit $st, $ed"); } else { $res =mysql_query("select * from videtails limit $st,$ed"); } $i=0; while($arr = mysql_fetch_array($res)) { if($i%4==0) { if($i==0) echo "<tr>"; else echo "</tr><tr>"; } ?> <td align="center" style="padding-left:10pt;" height="100" width="100"> <table border="0" cellpadding="0" cellspacing="0" align="left"> <tr> <td colspan="3" height="80" bgcolor="ivory"> <? echo "<a href=./detailview.php?id="; echo $arr['videono']; echo "><img src=mov_image/"; echo $arr['imgpath']; echo " width=80 height=60 border=0></a>"; ?> </td> <tr><td style="font-size:9pt;color:blue" align="center"><? echo "<a href=./detailview.php?id="; echo $arr['videono']; echo "><u> "; echo $arr['videoname']; echo "</u></a>"; ?></td> </tr> <tr><td style="font-size:9pt;color:green" align=center><?=$arr['duration']?></td></tr> <tr><td> <!--adasfdasfadsfadsf --> <? //$resid =mysql_query("select * from videtails where videono='$id'"); //$arrog = mysql_fetch_array($resid); if ($arr['rperson'] == 0) { $calculat = 0; } else { $calculat = $arr['rating'] / $arr['rperson']; } //echo "<br>".$calculat. " This is calculated"."<br>"; if ($calculat == 5) { $star = "images/5star.gif" ; } if ($calculat>=1) { $star = "images/1star.gif" ; } if ($calculat>=1.5) { $star = "images/15star.gif" ; } if ($calculat>=2) { $star = "images/2star.gif" ; } if ($calculat>=2.5) { $star = "images/25star.gif" ; } if ($calculat>=3) { $star = "images/3star.gif" ; } if ($calculat>=3.5) { $star = "images/35star.gif" ; } if ($calculat >= 4) { $star = "images/4star.gif" ; } if ($calculat>= 4.5) { $star = "images/45star.gif" ; } if ($calculat >= 5) { $star = "images/5star.gif" ; } if ($calculat<=0) { $star = "images/00star.gif" ; } echo "<img src=$star>"; ?> <!--dasfasfadsfadsfas --> </td></tr> </table> </td> <? $i++; } for($j=$i;$j<12;$j++) { if($j%4==0) { if($j==0) echo "<tr>"; else echo "</tr><tr>"; } echo '<td align="center" style="padding-left:30pt;" height="200"> </td>'; } $mostv=$_REQUEST['mv']; //echo $mostv; if ($mostv==1) { //$mav = mysql_query("select max(viewed) from videtails"); //$ary = mysql_fetch_array($mav); //echo $ary[0]; //minimum viewed //$arym=$ary[0]-4; //echo "select * from videtails where viewed between $arym and $ary[0]"; $res =mysql_query("select * from videtails where viewed between $arym and $ary[0]"); } elseif($mostv==2) { $res =mysql_query("select * from videtails where curdate between $mdate and $da"); } elseif($most==3) { $res =mysql_query("select * from videtails where finrating between 4 and 5"); } else { $res =mysql_query("select * from videtails"); } if($res) $num = mysql_num_rows($res); if($num>9) { $k=1; echo "<tr><td colspan='3' style='font-size:14;text-align:right;font-weight:bold;padding-right:50pt;'><font color='Mediumslateblue'>Page  </font>"; if($curpage==1) echo "<font color='red'>$k </font>"; else echo "<a href='index.php?cat=$cat&curpage=$k&st=$st&ed=$ed' style='text-decoration:none;color:blue'>$k </a>"; for($j=1;$j<=$num;$j++) if($j%12==0) { $k++; if($curpage==$k) echo "<font color='red'>$k </font>"; else echo "<a href='index.php?cat=$cat&curpage=$k&st=$st&ed=$ed' style='text-decoration:none;color:blue'>$k </a>"; } } } else { //dasfasf } ?> </table> </div>
Are they video thumbs, I think this may be the section: <td colspan="3" height="80" bgcolor="ivory"> <? echo "<a href=./detailview.php?id="; echo $arr['videono']; echo "><img src=mov_image/"; echo $arr['imgpath']; echo " width=80 height=60 border=0></a>"; ?> </td> Code (markup): Then you could change the padding's margin's borders as appropriate.
Thanks for helping me. Can you tell me which line or what tag I have to modify? Do I have to use a new tag like 'padding" or something? Will it be HTML or inline CSS? Thanks again!
Was this the thumbs you are on about, the video thumbs? I'm not too familiar with tables, you say the space between them is too big? Well if this is the right code then i'm not too sure you could try adding cellpadding="0" and cellspacing="0" and border = "0" to the td that the img is inside to see if it changes the space, between them. It looks as if it is spanning 3 columns also so you may want to try changing colspan="3" to a lesser value, and see if it modifies the space. Would probably be easier to manage if you just made it tableless but this is a different process.