setMargins

abstract fun setMargins(left: Int = 0, top: Int = 0, right: Int = 0, bottom: Int = 0)

Sets margins on the view element inside the WebView. Values should be passed as device pixels.