jolietjake
07-22-2002, 09:28 AM
Hello!, here's a question, Can I insert a scroll bar on a div? I need to visualize a huge HTML code on a limited space without using frames, so I need the scroll bar, How can I do it?
|
||||
insert an scrollbar on a divjolietjake 07-22-2002, 09:28 AM Hello!, here's a question, Can I insert a scroll bar on a div? I need to visualize a huge HTML code on a limited space without using frames, so I need the scroll bar, How can I do it? Cloudski 07-22-2002, 09:31 AM Why can't you use frames? iframes would be simple.... jolietjake 07-22-2002, 09:40 AM Yes it would be easy, but it slows my application (and it is so slow now), and speed is critical to my client. (javascript is so fast :-) ) Cloudski 07-22-2002, 09:42 AM Ah, well sorry, I can't really help you on this one... DIVs are not my specialty.. :( Algorithm 07-22-2002, 09:48 AM <div style="overflow:scroll"> Scrollable content goes here </div> This should work in all CSS2-compatible browsers. WAlurker 07-22-2002, 02:12 PM You can set both the x and y axis overflow to 'auto', 'no', and 'yes': For example: style='overflow-y: auto; overflow-x: no;' BrainJar 07-22-2002, 03:59 PM If you use overflow: scroll; or overflow:auto; you may also need to set the height style for the DIV. jkd 07-22-2002, 06:39 PM Originally posted by WAlurker You can set both the x and y axis overflow to 'auto', 'no', and 'yes': For example: style='overflow-y: auto; overflow-x: no;' Not if you care about W3C standards, and support for non-IE browsers. |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum