I agree with David, but Bootstrap isn't fully functional with web.py yet.
There are still some kinks in it...
On Tuesday, February 4, 2014 8:58:48 PM UTC-6, David Kopec wrote:
>
> I highly recommend you look into using a CSS framework like Bootstrap with
> web.py. It will solve a lot of your layout woes. A basic understanding of
> CSS is helpful though, even when using a framework. Best of luck.
>
> On Thursday, January 23, 2014 3:34:44 PM UTC-5, Christof Warlich wrote:
>>
>> Hi,
>>
>> I'm abolutely new to web.py and to web programming in general and was
>> attracted by the first very quick results I got with web.py. But now I'm
>> stuck:
>>
>> Consider this stripped down but operational code:
>>
>> index.py:
>>
>> import web
>> from web import form
>> urls = ('/', 'index')
>> render = web.template.render('')
>> app = web.application(urls, globals())
>> my_form = form.Form(
>> form.Button("", html="TopLeft"),
>> form.Button("", html="TopRight"),
>> form.Button("", html="BottomLeft"),
>> form.Button("", html="BottomRight")
>> )
>> class index:
>> def GET(self):
>> form = my_form()
>> return render.index(form, "")
>> if __name__ == '__main__':
>> app.run()
>>
>> index.html:
>>
>> $def with (form, title)
>> <!doctype html>
>> <html>
>> <body>
>> $:form.render()
>> </body>
>> </html>
>>
>> How do I manage to position the buttons to the positions that their
>> labels are indicating?
>>
>> From the generated HTML code, I see that the buttons are put into a one
>> colunm table, but I can't figure out how to control its rows and columns.
>>
>> Thanks for any help,
>>
>> Chris
>>
>
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/groups/opt_out.