On Sun, 17 Mar 2002, Matthew Harrison wrote:
> i have been told that i can use HTML::Template to change the background
> color of text boxes and the like in forms. is this true and if so, could
> someone show me how??
CSS can do this. In your template, put e.g.
<input type="text" .... class="formtext">
And then set up a .formtext rule in your site stylesheet:
.formtext { background: #000000; }
Etc.
Play around with it -- depending on the browser, you have a fair amount of
flexibility here. If you want HTML::Template to get involved, then you
could have, for example,
<input type="text" .... class="<tmpl_var name="formtext">">
...which will dynamically grab a rule from the stylesheet, or you could
embed the style info with "style='<tmpl_var name="formtextstyle">'", etc.
--
Chris Devers [EMAIL PROTECTED]
Apache / mod_perl / http://homepage.mac.com/chdevers/resume/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]