Doing this below, I can change the button color. How would I change the 
background string or textarea color? Below don't seem to work. Thanks in 
advance


in db.py
db.define_table("contact",
                Field("your_name", "string", label='Name', ),
                Field("your_email", 
label='Email',requires=IS_EMPTY_OR(IS_EMAIL(error_message='invalid 
email'))),
                Field("your_message", "text", label='Message',),
                auth.signature)





in index.html
{{form.element('input[type=submit]').update(_class="btn btn-primary")}}
{{form.element('textarea').update(_class="custom")}}

{{=form}}



<style>
 .custom {  
     background-color: green;
 }
</style>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to