Someone asked me how they can set up a box of text and limit the width to a certain number of characters. the PRE tag (in some things I found online) used to (?) to have a width attribute, but it doesn't seem to work in IE 5+. The only way I could do is like this:
<style type="text/css">
.test {
overflow: hidden;
border: 0;
font-family: "Courier New", Courier, mono;
}
</style>
<textarea cols="10" rows="12" wrap="VIRTUAL" class="test">Lorem ipsum dolor sit amet no nummy some more text, blah blah blah 01234567890</textarea>
(this would limit the width to 10 characters like this:
Can you think of any other way?
update See comments – there *is* a better way…