|
-
Apr 23rd, 2009, 12:57 PM
#1
Thread Starter
Addicted Member
Is It Possible To Make A webBrowser Control "Wrap" Its Contents?
I'm working a project I can't discuss on here, but could someone tell me if it's possible to make a webBrowser control to have its contents wrapped like you can wrap the text in a textBox control? If it's possible, could you please tell me how to go about this?
Thanks,
Louix
-
Apr 23rd, 2009, 01:49 PM
#2
Re: Is It Possible To Make A webBrowser Control "Wrap" Its Contents?
the browser displays HTML. So if the HTML it is displaying is designed to wrap, then it will. If it is not, you get scroll bars. It is pretty much that simple.
If you are talking about going to an existing site, and rendering their site differnetly, then that would require you to implement your own HTML rendering engine, and not use the browser control in the first place.
-
Apr 23rd, 2009, 02:50 PM
#3
Thread Starter
Addicted Member
Re: Is It Possible To Make A webBrowser Control "Wrap" Its Contents?
Thanks for replying 
I found a way to do it by using the CSS property, "word-wrap".
CSS:
Code:
word-wrap: break-word;
JavaScript:
Code:
document.body.style.wordWrap = 'break-word';
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|