views:

139

answers:

2

Is there a way to change the text color for entire webView? If it is could you provide me with some examples?

A: 

A web view displays a web page, so do it the same way you would do it for any web page: define a CSS style (inline or in an external, referenced stylesheet):

* {
color: #FFFFFF;
}

... then the page will be rendered with all text the designated color. This works because the * selector applies to all elements and the color property specifies the text color.

Joshua Nozzi
Thanks, but by design I cannot put color in html, the color has to come from user preferences.
Nava Carmon
I *believe* you can forcibly include an external stylesheet with WebKit without referencing it from within the HTML.
Joshua Nozzi
A: 

It's easily doable from javascript

Nava Carmon