adjust text fields according to form collapse width

  • Profile Image
    Asked on December 06, 2012 at 11:01 AM

    How do I adjust the width of the form fields, not to the form with but to the width of a form collapse?

    I got a bunch of form collapse, underneath each is a HTML field and underneath that a few name, text box & email fields. Those form fields are too long and more in width of the whole form and I need to bring them in a bit, to fit with the form collapse ones.

    I'm a CSS novice and have only made this form from plowing relentlessly through of the forums (which is brilliant for copy and paste).

    My form has a transparent background in case you wonder


  • Profile Image
    Answered on December 06, 2012 at 01:23 PM


    You can edit the HTML field and hit "Enter" on your keyboard to bring down some words into new line and to fit it on your form.

    Or, inject this custom CSS codes to your form;

    .form-html {

    width: 390px !important;


    Adjust the width value if needed.


  • Profile Image
    Answered on December 06, 2012 at 01:44 PM

    Thanks but I'm referring to the text, name and email fields, not the HTML box which I have manage to control by CSS.

    Need to have everything lined up with the collapse boxes.

    Please have a look here on the form

  • Profile Image
    Answered on December 06, 2012 at 02:50 PM

    Hi there, 

    Here is a clone of your form:'

    I changed the CSS a little bit.

    The line of CSS that lines up the fields is highlighted in yellow.  Let us know if you need further assistance!

    .form-collapse-table {



    }.form-collapse-mid {



    .form-collapse-table:hover {box-shadow:none;


    background: #114CDF;}a {

    color: #FE0000


    .form-line {

    padding-left: 50px;


    .form-all {

    padding-top: 0;


    .form-html {max-width: 530px;width: 530px;

    margin-left: 40px;


  • Profile Image
    Answered on December 06, 2012 at 03:32 PM

    Many thanks!