input box height issues
Posted
by Steven Xu
on Stack Overflow
See other posts from Stack Overflow
or by Steven Xu
Published on 2010-03-29T00:55:45Z
Indexed on
2010/03/29
1:03 UTC
Read the original article
Hit count: 462
css
I'm trying to set an input box with a specific internal height, and I'm running into issues:
font-size: 12px; line-height: 12px; height: 12px; display: block; padding: 5px;
Is a sample of what I put in inline styles or stylesheets. I would expect the input box value to be visible at full height, but the inner height of the input box ends up being really small, and it always seems to follow the form:
actual inner height = css height - 2*border width - 2*padding
Funny, because I swear I've done this before without issue. What am I missing?
© Stack Overflow or respective owner