This is more of a 'how can this be done', 'do you have any better ideas' post than anything else. I have pretty basic (not to mention ugly), forms/tables being printed (see example). I want to know how now begin working on the appearance of the tables and make them a lot more neat. You know, better alignment, background colors, the whole works.
Is there a different way to go at it rather than what's shown below? Are there form/table templates for us to use somewhere?
Thanks.
print start_form(), table(
Tr(
td("Name: "),
td(
textfield(
-name => 'name',
-default =>"$edituser",
-size => 40
)
)
),
Tr(
td("Address 1: "),
td(
textfield(
-name => 'add1',
-default =>"$add1",
-size => 40
)
)
),
Tr(
td("Address 2: "),
td(
textfield(
-name => 'add2',
-default =>"$add2",
-size => 40
)
)
),
Tr(
td("City/State: "),
td(
textfield(
-name => 'city',
-default =>"$city",
-size => 40
)
)
),
Tr(
td("Zip: "),
td(
textfield(
-name => 'zip',
-default =>"$zip",
-size => 40
)
)
),
Tr(
td("Country: "),
td(
textfield(
-name => 'country',
-default =>"$country",
-size => 40
)
)
),
Tr( td(), td(submit('update')) ),
),
end_form(),;
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.