View Full Version : <textarea> with HTML?
Voldemort
31-03-2007, 07:58 AM
How can I achieve the effect of an iframe without having to use an iframe? I need something scrollable (vertical only) and readonly.
It's for my chatbox... which is turning out better than expected.
edit: gah, ignore the thread title. I was thinking a different problem when I wrote that...
Splinter
31-03-2007, 08:47 AM
<div style="height: 100px; width: 100px; overflow: auto;"></div>
This means if the content goes over 100px height or width then a scroll bar will appear :)
Voldemort
31-03-2007, 09:36 AM
Thanks :)
I'm done for the night, I have to wake up in three hours.
http://www.yodaofdarkness.net - tell me if there's anything to be improved besides looks.
Verrou
31-03-2007, 09:52 PM
It's cool although i sugest u make the box longer width wise, because with the horizontal scroll bar, it makes it look messy when people put long messages in.
Soz, I wanted to see if you disabled HTML and its gone wierd ;)
Voldemort
01-04-2007, 06:34 PM
I'm almost done, all that's left is to add colors, which is getting to be a real pain in the neck.
Refresh is now AJAX-ified and it doesn't display broken <script>s anymore.
Colors now work!
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.