This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Custom width of Fields


  1. vito
    Member

    Hello

    Could really use some help, I'm integrating a form into a Wordpress sidebar.

    I want to manually specify the width of each field, such as name, address, query etc - don't want to use large, medium etc

    Also, what CSS controls the button style, font, size etc

    Thanks very much

    Posted 11 years ago #
  2. yuniar

    You can specify custom CSS code through your theme. Simply click the "Advanced CSS" menu-item when editing your theme and put your code there.

    I suggest to use Firebug, a Firefox extension, to inspect any element on your form and get the CSS property which affect that element.


    MachForm Founder

    Posted 11 years ago #
  3. vito
    Member

    Hi Yuniar

    What specific CSS code would I use to reduce the width of a particular field?

    Thanks,

    Posted 11 years ago #
  4. yuniar

    Let say you have a text field with the name attribute "element_2".
    You can use this CSS code to adjust the width of the field:

    #li_2{
      width: 50%;
    }

    or this if you need to set to a specific width:

    #li_2{
      width: 100px;
    }

    MachForm Founder

    Posted 11 years ago #

RSS feed for this topic

Reply