views:

34

answers:

2

Is there any way of removing a section of a website without altering the code. Let's say for an example, I would create a webBrowser control in my windows form and tell it to load stackoverflow.com, would there be any way of removing; lets say the top 100 pixels from displaying?

Thanks
Lawrence

+2  A: 

You could write your own html page with an iframe in it, load the site (e.g. stackoverflow) in the iframe and set the css margin-top property for the iframe to "-100px"

Manu
Hey, that's a good solution as well...
David Stratton
Thanks for the quick answer, I hadn't thought of this so I'll do it now :)
Lawrence
+2  A: 

The best I can come up with would be to have a panel overlap the top 100 pixels of the WebBrowser control.

David Stratton