How to change height and width of input text fields in Configurable List widget?

  • martinbond
    Asked on March 3, 2015 at 6:31 AM

    Hi, I've already asked a similar question previously but the code doesn't seem to be working 

    How do I adjust the width of the text input field, as seen highlighted in the screenshot below. 

    How to change height and width of input text fields in Configurable List widget? Image 1 Screenshot 20

     

    Thanks, 

     

     Martin. 

  • martinbond
    Replied on March 3, 2015 at 12:53 PM

    Thank you Shadae, work's perfectly. 

    Can you help me on another matter, basically over the past few weeks I've been developing my configurable lists via trial and error, combining different codes etc. Honestly I'm a bit lost with my final code and think there may be code trying to do the same job etc, can you please review my code below and indicate if this is this case. 

    It seems to be playing with the sizing of my text input fields, see screen shot below, col's 1&5 are a different height compared to col's 2,3 and 4. How to change height and width of input text fields in Configurable List widget? Image 1 Screenshot 20

  • Charlie
    Replied on March 3, 2015 at 1:58 PM

    Hi,

    Input text fields in column 1 and 5 are different because you forgot to add this custom CSS code for the font size.

    .col1 input[type="text"] {

    font-size : large

    }

    .col5 input[type="text"] {

    font-size : large

    }

    Only 2, 3 and 4 have the input[type="text"] that has the font-size styled.

    You could just add the custom CSS code above in the widget and it should be fine.

    Thank you.

  • martinbond
    Replied on March 3, 2015 at 2:00 PM

    .col1, col2, col3, col4 {

    margin: 3px 0;

    height: 50px;

    font size: large;

    }

    text {

    height: 30px !important;

    width: 400px !important;

    font-size: large;

    }

    th {

    font-size : 17px;

    }

    tr {

    font-family: arial;

    font-size: large;

    }

    .col3 input[type="text"] {

    font-size : large

    }

    .col4 input[type="text"] {

    font-size : large

    }

    .col2 input[type="text"] {

    font-size : large

    }

    select {

    height: 30px !important;

    }

    table {

    border-spacing: 2px !important;

    border-collapse: collapse;

    }

    #customFieldFrame_249 {

    padding-right: 20px !important;

    margin-right: 20px !important;

    }

    th {

    border: 2px solid #000000;

    padding: 5px;

    }

    tr td {

    border-bottom: 2px solid #000000 !important;

    border-left: 2px solid #000;

    }

    td {

    vertical-align: middle;

    }

    tr:nth-child(1) {

    background-color: #A0A0A0;

    }

    tr:nth-child(2) {

    background-color: #F8F8F8;

    }

    tr:nth-child(3) {

    background-color: #E8E8E8;

    }

    tr:nth-child(4) {

    background-color: #F8F8F8;

    }

    tr:nth-child(5) {

    background-color: #E8E8E8;

    }

    tr:nth-child(6) {

    background-color: #F8F8F8;

    }

    tr:nth-child(7) {

    background-color: #E8E8E8;

    }

     

    td.col1 input[type="text"]{

     width:200px;

    }

    td.col2 input[type="text"]{

     width:200px;

    }

    td.col3 input[type="text"]{

     width:200px;

    }

    td.col4 input[type="text"]{

     width:200px;

    }

    td.col5 input[type="text"]{

     width:150px;

    }

    td.col6 input[type="text"]{

     width:150px;

    }

     

  • martinbond
    Replied on March 3, 2015 at 2:01 PM

    Hi, would it be possible for you to clean up the code above as that technical knowledge is above my level. Only smarty pants like yourself can deal with such matters.