Re: Formatting issue.
| From: | Hugh Bothwell | Date: | Mon, 16 Jun 2003 23:48:14 +0000 |
| Subject: | Re: Formatting issue. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151754@lists.php.net to get a copy of this message | ||
"Lowell Allen" <la@lowellallen.com> wrote in message
news:BB13BA4D.1A3F7%la@lowellallen.com...
>
> From: "Tom Ray [Lists]" <lists@blazestudios.com>
>>
>> I want to be
>> able to display thumbnail versions of the pictures, 3 per row and as
>> many rows as needed. Unfortunetly, all I can do right now is 1 per row,
>> this is where I need the help. Here's the code that displays images:
>> [snip]
>> So how do I make this work so I can have three cells per table row and
>> it actaully show the proper picture?
>
>
> You need to set up a counter so you can start a new table row at the
> appropriate time. Beginning from the line where you use explode(), and for
> brevity not writing out the HTML for linking the image:
... alternatively, you could use CSS relative positioning to
'flow' the images, so they wrap to whatever the page width
is.
This has the side benefits of simplifying your output
logic and making the output more flexible.
--
Hugh Bothwell hugh_bothwell@hotmail.com Kingston ON Canada
v3.1 GCS/E/AT d- s+: a- C+++ L++>+++$ P+ E- W+++$ N++ K? w++ M PS+
PE++ Y+ PGP+ t-- 5++ !X R+ tv b++++ DI+++ D-(++) G+ e(++) h-- r- y+