[Html-widget] newbie question: <br>
Will Smith
willbelair at yahoo.com
Fri Feb 9 15:38:03 GMT 2007
Thank you for your reply.
In fact, I have to do that in controller due to some other functionality. So my simple code is:
my $w = $c->widget('feedback')->method('post')->action($c->req->uri);
for(looping to create multiple rows)
{
$w->element('Textfield', 'name')->size(15);
$w->element('Textfield', 'email')->size(15);
$w->element('Textfield', 'comment')->size(30);
}
$w->element('Submit', 'send')->value('Send it');
and the result I want is a set of number of rows of 3 text fields, no labels, and a submit button on the last, seperate line.
I hope that you could help me out.
Thank you.
Carl Franks <fireartist at gmail.com> wrote: On 09/02/07, Will Smith wrote:
> Hi,
> First time I use this html::widget, and find it very interesting. I need to
> create the form with 3 text boxes in one line and a submit button in another
> line. But it does not matter how I changed the code, css, I still get all of
> them in one line. Could you help showing how to do that, and I want to have
> some space between text boxes, not just one after another.
At a guess, (meaning: untested)...
If your elements have labels, then something like:
label { float: left; padding-right: 2em; }
input[type=submit] { clear: left; }
If they don't have labels, then:
input { float: left; padding-right: 2em; }
input[type=submit] { clear: left; }
Carl
_______________________________________________
Html-widget mailing list
Html-widget at lists.rawmode.org
http://lists.rawmode.org/cgi-bin/mailman/listinfo/html-widget
---------------------------------
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/html-widget/attachments/20070209/78b223b0/attachment.htm
More information about the Html-widget
mailing list