Search code examples
cssgwtcelltable

How to make an input fit nicely inside a cell in a CellTable?


 GWT CellTable

In the screenshot above the input width exceeds the column width. How to make it fit perfectly inside a column?


Solution

  • Add this to your CSS file:

    td input[type="text"], td select {
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        width: 100%;
    }