how can I format a TABLE like this?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Ok, I've got my page laid out pretty much how I want it, but can't figure
out one part...

my "content" area is a fixed width table with 2 columns... COL A = 600px
wide & COL B = 170px wide...

COL A will show the list of available items... this is the part I'm having
trouble with. COL B is irrelevant for this discussion.

I want each item to be about 150px wide (about 25% of the width of 600
pixels for COL A)... So obviously I'll only have a max of 4 items across...

The issue is that sometimes a row will not have 4 items across... sometimes
it will have 3, 2 or 1. If it has 3 across... I still want the items to be
about 150px wide, but be spaced evenly (ie.. each padded to 1/3 the width
without enlarging the 150px item)... 2 items? each item will still be 150px
wide, but be spaced out evenly to 50% of the width.

I can figure out how to do that for 4 items and hardcode the width at 25%
each and it'll all work fine, but how do I adjust for 3, 2, or 1 item rows?

The rows are being built using a repeater control that hits up a stored proc
in the database (datasource).

Thanks!


.



Relevant Pages

  • Re: why woman get raped and evion killed
    ... > SIX years and no hits? ... > I like my men tall, ... > to me wishing to get laid he'll leave with a broken heart, ...
    (alt.mountain-bike)
  • Re: Wmp 10 Database
    ... I installed WMP10 today 9/5 NO Problems ... The database didn't seem to change enough to hurt my program - that part is ... still laid out the same. ...
    (microsoft.public.windowsmedia.player)
  • Re: Single tank wing
    ... absolute worse was from 480 VAC. ... I haven't had any 3-phase hits like that yet... ... most memorable was when I laid my arm across the test points in the ...
    (rec.scuba)
  • Re: copy an existing database and putting it into the server
    ... I am trying to create a sandbox out of the original database. ... They laid out the procedure but not the steps to accomplish the tasks. ... > instance of Project Server using the backup of your original Project Server ...
    (microsoft.public.project.pro_and_server)
  • Database interface for Parts - Protel 99SE
    ... Does anyone know how I could interface the database from my inventory to a ... part field in Protel so that when a Schematic is being laid out I can select ...
    (sci.electronics.cad)