Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7838803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:13:03+00:00 2026-06-02T15:13:03+00:00

In my application, I need to take input from the user for a column

  • 0

In my application, I need to take input from the user for a column named ‘body’ in a table in the database.

My code in the .ctp file is:

echo $form->input('body',array('style'=>'width: 900px'));

In this way, i am able to specify the width of the body field which works fine. But, I want to specify the height as well.

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 one doesnt work for either width or height and the second one modifies only the height but not the width.
Can someone please tell me how to overcome this issue.

Thank you very much in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T15:13:05+00:00Added an answer on June 2, 2026 at 3:13 pm
    // in a css file.
    .txtArea { width:900px; height:500px; }
    
    // in your view
    echo $form->input('body', array('class'=>'txtArea'));
    

    would be the recommended and preferred manner.

    Alternatively, make sure your inline CSS is correct:

    echo $form->input('body', array('style'=>'width:900px; height:500px;'));
    

    Your code appears to be missing a ;, and of course by specifying style twice you will be overwriting the previous value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to process the input from the user in a console application, and
In the java web application need to select the file from server and print
In my WP7 application I need to the user to take a picture before
I have a web application that needs to take a file upload from the
I have an application where I need to take the items from a list
I need to take an existing winforms application and drop into an event tracing
I am currently working on an application in-which I need to take the screenshot
Does a application in .NET need to be built in 64 bit to take
I need to add functionality to my J2EE-based wep application: 1) Take some page,
Hi every body i am new in iPhone application development. In my application need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.