Positioning WebView content
Having made a nice WebView and imported some HTML into it, I find a nasty white margin at the top and left as my customer hasn't set his body tag margin to zero. It's being used for his website so he's unlikely to want to change it either.
So is there any way to offset this inside a WebView? Looking at the API I can't see that there is - which is rather disappointing.
I did try and do it with DOM methods but can't seem to be able to access the content inside the WebView. Obviously not my day!
1 Answer
-
Are you just loading a remote URL into the webview? Or are you creating the content and posting it (rendered from local code)? If you're pulling it remotely, there isnt anything you can do, the webview is just a container.