Hello.
I have form elements like text area and input types and other elements in my webpage(which is desgined for mobile devices) is it possible to design so that they resize them selves according to screen size using CSS(no java script please)?
Thanks in advanceSure, you can give them percentage widths and heights. Keep in mind that those percentages will be based on the dimentions of the parent element, which is probably not body.I have tried it with no success can you please provide me with an example for a simple <textarea> which can resize itself according to the screen size.
Thank you<form>
<p>Normal size:<br>
<textarea cols=40 rows=5 name="normal"></textarea>
</p>
<p>Percentage sized:<br>
<textarea cols=40 rows=5 name="percent" style="width: 60%"></textarea>
</p>
</form>Thank a lot that really helped
I have form elements like text area and input types and other elements in my webpage(which is desgined for mobile devices) is it possible to design so that they resize them selves according to screen size using CSS(no java script please)?
Thanks in advanceSure, you can give them percentage widths and heights. Keep in mind that those percentages will be based on the dimentions of the parent element, which is probably not body.I have tried it with no success can you please provide me with an example for a simple <textarea> which can resize itself according to the screen size.
Thank you<form>
<p>Normal size:<br>
<textarea cols=40 rows=5 name="normal"></textarea>
</p>
<p>Percentage sized:<br>
<textarea cols=40 rows=5 name="percent" style="width: 60%"></textarea>
</p>
</form>Thank a lot that really helped