Forum Moderators: not2easy

Message Too Old, No Replies

problem with dynamic textarea height with ie5

height:100% works with ie6 but not ie5....

         

briceder

4:40 pm on Aug 18, 2004 (gmt 0)



Hey,

I have a css stylesheet defining wigth:100% and height:100% for textarea.special. The goal is of course to dynamically wrap the text I am displaying.
Both work great with ie6 but the height:100% is not supported by ie5. What could I do to still wrap vertically any text with ie5?
Any suggestion would be appreciate a lot!

Thanks,
Brice

SuzyUK

7:08 pm on Aug 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi briceder - Welcome to WebmasterWorld

I may not be understanding this properly.. but the only way to get an element to inherit height from it's parent is to have a height explicitly set on the parent element.

I tried this and it works fine in IE5, but may not be what you mean?


<style type="text/css" media="screen">
.wrapper {
width: 400px;
height: 300px;
}

.wrapper textarea {
width: 100%;
height: 100%;
}

</style>
</head>
<body>
<div class="wrapper">
<textarea>
I have a css stylesheet defining wigth:100% and height:100% for textarea.special.
The goal is of course to dynamically wrap the text I am displaying.

Both work great with ie6 but the height:100% is not supported by ie5.

What could I do to still wrap vertically any text with ie5?

Any suggestion would be appreciate a lot!
</textarea>
</div>

post your code snippets (parent element included) if this is not what you're after.

Suzy