Hello,
I am trying to style the webview with css. I managed to style all the other controls, except the webview.
This code in the css file doesn't seem to work:
I'd like to make at least the default background to black and the default text color to white. I know that I can style the <div> in the LoadHtml function like this:
But I still get white edges around the div like this:
I have attached an example file for you to try with.
Thanks for your time.
Jmon.
[EDIT] Check post #5 for the answer.
I am trying to style the webview with css. I managed to style all the other controls, except the webview.
This code in the css file doesn't seem to work:
B4X:
.web-view {
-fx-background-color: linear-gradient(#111111 0%, #222222 25%, #333333 75%, #444444 100%);
-fx-text-fill: white;
}
I'd like to make at least the default background to black and the default text color to white. I know that I can style the <div> in the LoadHtml function like this:
B4X:
"<div id=""message"" style=""background-color:#FFA500;"">"
I have attached an example file for you to try with.
Thanks for your time.
Jmon.
[EDIT] Check post #5 for the answer.
Attachments
Last edited: