I am looking for a way in CSS to set the height of a text input to a percent of the normal height it would be given naturally given font-family/font-sizes, if the height was not declared. I am not looking for a percent of the height of the container it is in. Like so:
CSS:
#container {
height: 100%;
width: 100%;
}
input {
width: 100%;
background: orange;
height: [I want this 150% of the height normally assigned to the element]
font-family: inherit;
font-size: inherit;
}
#results {
width: 100%;
background: pink;
height: auto;
height: 100%;
}
HTML:
<div id="container">
<input type="text">
<div id="results"></div>
</div>
Use
em:Edit
Always good to remember:
4.3.1 Integers and real numbers
So
1,5emwas garbage, sorry!Edit
Your comment about
emis correct, see: