Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Can HTML::Template do this?

by thraxil (Prior)
on Apr 27, 2004 at 15:34 UTC ( #348539=note: print w/replies, xml ) Need Help??

in reply to Can HTML::Template do this?

i've stopped using tables for image galleries altogether. instead, i prefer to just spit out a bunch of divs and float them with CSS. eg, see this gallery. the advantages are that it is simple to generate (you can just use a plain <tmpl_loop>) and if you resize the browser window, they will reflow to fit. this allows the user to take full advantage of a big screen without making users with small screens scroll horizontally. if you still want to limit it to a certain number of columns, you just enclose the whole thing in a div with a fixed width. if you have images with irregular dimensions, you need to force the enclosing divs out to the maximum width and heights to make it look neat.

i used to try to do these with tables and it involved all kinds of annoying code to add in empty entries for the remaining table cells.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://348539]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2016-10-24 02:15 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (302 votes). Check out past polls.