Select inputs and text inputs in HTML - Best way to make equal width?

前端 未结 3 953
耶瑟儿~
耶瑟儿~ 2020-11-28 19:05

I\'ve got a simple form like so (illustrative purposes only)...

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-28 19:46

    Had same problems with 100% width table and cells, with a textbox (also with width at 100%) wider than the table cell.

    This solved my problem in the css:

    table td
    {
        padding-right: 8px;
    }
    

    Not the best solution ever, cause you probably get some additional space to the right side. But at least it's not hiding anymore!

提交回复
热议问题