Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Perl Monk, Perl Meditation
 
PerlMonks  

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.


Comment on Re: Can HTML::Template do this?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2014-04-17 11:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (446 votes), past polls