N
Nobody
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!
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!