Hi! How can I setup the size (width, min-width) of a text or textarea o

  • matheg
    Asked on April 3, 2018 at 7:03 AM

    Hi! How can I setup the size (width, min-width) of a text or textarea object?

    .text {

    width: 500px

    }

    I tried the code above but it didn't work.

  • Kevin Support Team Lead
    Replied on April 3, 2018 at 9:41 AM

    You need to use "input[type="text"]" for text boxes  and "textarea" for text areas instead of ".text", if the code still does not work, please kindly try adding "!important" after the px value.

    I hope this helps. 

  • Gábor Máthé
    Replied on April 6, 2018 at 7:59 AM

    Hi Kevin_G! I like this object type so much! Your answer helped me a lot, but since then I have a few new questions.

    The same syntax didn't work for me with input[type="number"]. Is there an other name for that kind of input field? I can't translate the headers and hint text to another language. altough this is essential for me. Is there a way to translate these strings too?
    There are too many similar widgets (configurable list, infinite list, matrix dynamique, add options, dynamic textbox) but none of them are perfect. It would be great to have only one complex widget with all the parameter settings. :)
  • Gábor Máthé
    Replied on April 6, 2018 at 8:43 AM
    Hi! I like this object type so much! Your answer helped me a lot, but since
    then I have a few new questions.
    1. The same syntax didn't work for me with input[type="number"]. Is
    there an other name for that kind of input field?
    2. I can't translate the headers and hint text to another language.
    altough this is essential for me. Is there a way to translate these strings
    too?
    There are too many similar widgets (configurable list, infinite list,
    matrix dynamique, add options, dynamic textbox) but none of them are
    perfect. It would be great to have only one complex widget with all the
    parameter settings. It depends on the requirements which parameters do I
    need. But it is so ugly if I use different object for almost the same
    purpose.

    Thanks for your reply in advance.
    Best regards, Gábor
    2018-04-03 15:41 GMT+02:00 JotForm :
    ...
  • Kevin Support Team Lead
    Replied on April 6, 2018 at 10:35 AM

    1. You may inspect the source code in order to know the input type, if it's a  drop down then you may use "select" instead of the "input[type=]" selector. 

    1523024639screenshot 01 Screenshot 10

    2. Unfortunately, it's not possible to translate the widgets due to the way they are created, please note that this will be implemented as soon as our developers find a solution. 

    Your last request has been moved to another thread: https://www.jotform.com/answers/1437370 

    We will assist you there as soon as possible. 

    Thanks.