In my application, I need to enter user data for a column named "body" in a table in a database.
My code in the .ctp file:
echo $form->input('body',array('style'=>'width: 900px'));
That way, I can specify the body field width, which works fine. But I also want to indicate the height.
I tried echo $form->input('body',array('style'=>'width: 900px height: 500px'));
echo $form->input('body',array('style'=>'width: 900px','style'=>'height: 500px'));
The first does not work either in width or in height, and the second - only in height, but not in width. Can someone please tell me how to overcome this problem.
Thank you in advance.
source
share