Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 lurking in the Monastery: (12)
As of 2015-07-08 06:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls