I have a MultiLine asp: Textbox (standard html textarea for those people who are not asp) that I want to be automatic in order to match all the contents only via css. The reason for this is because I want it to be a given height in a scrollable web browser.
However, I have implemented a print style sheet and I want all the text located in the text area to be displayed when printing without hiding the overflow.
I can manually specify the height of the text field in the problem with the print.css file, since this field is optional, and an empty 350 pixel cell is not optimal, and there is always the possibility of more text than this ...
I tried using:
height: auto;
height: 100%;
In IE and Firefox, respectively, all of this seems to be overridden by the presence of a certain number of lines in the html markup for the form that should be generated by .NET when you don't specify the height on asp: The text tag seems to only take numerical dimensions like px em etc.
Any ideas?
source
share