|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: PERL HTML HELPby blue_cowdawg (Prior) |
| on Oct 19, 2012 at 15:53 UTC ( #999960=note: print w/ replies, xml ) | Need Help?? |
|
Really this is less of a Perl question and more of an HTML question, but I'll bite. My favorite way to render HTML pages is using HTML::Template which allows me to create a set of template files with "placeholders" that I use later to populate real data into the rendered page. I won't go into a whole tutorial on that here, but that's one thing to look at. My second favorite is to use the CGI module. Example: which produces: If your trying to output to a file instead of STDOUT you'd do something like this:
As far as each letter having a different color goes I'm not sure what you are after but if I want to change the color of some text it's going to look something like: and if you're using a CSS sheet and have a class or id set up for what you want you can invoke it with {id => "foo"} just as I did with the style invocation above. As far as keeping your columns even and forcing a wraparound within a cell goes, that is strictly and HTML issue. Here (from a Perl perspective) what that looks like: The very right most column being the smallest and depending on the screen size should wrap nicely. There are other subtleties to explore in a combination of Perl-fu and HTML-fu and are beyond the scope of this thread. Peter L. Berghold -- Unix Professional Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||