View Full Version : Need to control table width in inc_ads.php
June 29th, 2006, 04:43 PM
The title should read inc_classifieds.php.
I noticed that long titles are pushing the table beyond it's designed width. I know I read a post somewhere on how to correct this, but can't find it now. Any help would be appreciated.
You can see the table is slightly whacked. It appears to be the non-wrapped title, but I can't be sure.
June 29th, 2006, 06:24 PM
It looks fine to me what is wrong? I dont see it breaking the width of anything.
June 29th, 2006, 07:06 PM
I took out one "nowrap" parameter, but it shoved the "latest ad" into a tiny little space and is forcing the whole row to expand it's height to compensate. With all the <div> statements in the formatting, it makes it hard (for us amateurs) to figure out how to control the width of each column.
I'll put it back so you can see what it's doing, and hopefully you can advise on what to do to correct it without scrunching up the ad column. I think if I could get the Ad title to wrap, but not give up all of it's "territory" it would be fine. I just put the problem back online.
June 29th, 2006, 07:10 PM
Not this matters to the immediate issue, but it appears there is an extra <div> in this section in the original inc_classifieds.php
<td class="alt2" nowrap="nowrap"><div class="smallfont" align="left">
<img class="inlineimg" src="$vb_urlpath/images/icons/icon1.gif" alt="" border="0" />
by <a href="member.php?u=$lastphobyid">$lastphoby</a>
<a href="$class_path/showproduct.php?product=$lastphoid"><img class="inlineimg" src="$vb_urlpath/images/buttons/lastpost.gif" alt="Go to last post" border="0" /></a>
As best I can tell, the bolded <div> never gets closed. Am I reading this right. Again, it doesn't seem to make any difference to the problem at hand.
June 29th, 2006, 07:22 PM
You can add another closing div at the bottom of that code above the closing td
June 29th, 2006, 07:33 PM
But the <div> issue was a side point. Note how wide the "Last Ad" column is. There must be some way to get the Category Name and the Last Ad columns to share the space more evenly, and wrap if needed.
June 29th, 2006, 08:36 PM
I've added fixed (%) widths to each column and am having some success. I will work with it some more and be ok.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.