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 :)
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.
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';