CSS: text input field in HTML overflows the containing TD/TABLE element

Posted on 23-12-2014 10:19 by graham
The problem is in using padding combined with width 100%. A solution for this is setting the box-sizing property on the input element to border-box
input {
box-sizing: border-box

Add comment

Has this tutorial been helpful to you? Or do you see anything wrong? We appreciate your opinion!
Your comment:
Show formatting hints
HTML is disallowed, but in your text you can use the following markup
  • [code][/code] for a block of code
  • [tt][/tt] for inline code
  • [link]link href|link anchor[/link] for links
  • [b][/b] for bold text
+ Ask a question
If you have a technical question related to programming and computers, ask it here. Other users will help you solve it!
Unanswered questions
Share your knowledge by helping others solve their problems