css - Html text box height in percentage -


i creating html5 mobile apllication using sencha touch.

i want specify height of text box in percentage of screen size.i aware percentage calculated based on size of parent container.if specify height x% in css height different different text boxes based on position ie height small if placed inside div height y%

i have checked "em" default font size 16px in devices

please suggest solution(other using media query)

regards

denny

make this

http://jsfiddle.net/fytmf/1/

css

html, body {     margin: 0;     padding: 0; } html, body, #mything, #mything textarea {     height: 100%; } 

html

<div id="mything">         <textarea rows="10" cols="40">x</textarea>     </div> 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -