Assuming you are using PHP or some server-side script and assuming you have a <ul> wrapped within a containing, static-width <div> (with
overflow-x:scroll;) you can set the width of the <ul> dynamically based on your box model calculations (the sum of an individual thumbnail's width, side border, side padding, and side margin) multiplied by the number of thumbnails returned from the DB.
Other than that, all I can think of is a hacky, non-semantic use of a table.
Last edited by Rowsdower!; 12-04-2009 at 02:58 PM..