My layout file defines a WebView, underneath which there are some fixed height buttons.
Alternative approach would be to set the WebView inside of a ScrollView
Then you can add left/right margin to the WebView and it will get the padding effect. The scrolling however will be handled by the ScrollView.
This will cause the scrollbar to be placed outside of the WebView which is the behavior I wanted for my app.