On 25 August 2011 09:49, bob <[email protected]> wrote:
> Anyone know why WebView doesn't like this?
Any more details, on how WebView does not like it? Does it say
anything, when you feed it?
How are you feeding it? Do you specify the MIME type?
> String html = "<html><head><style type=\"text/css\">tr { background-
> color: rgba(0, 0, 0, 0.8); } tbody.striped tr:nth-child(even)
> { background-color: rgba(20, 20, 20, 0.8); } tbody.striped tr:nth-
> child(odd) { background-color: rgba(10, 10, 10, 0.8); } table { width:
> 100%; } td { padding: 4px; font-size: 13px; } body { color: white;
> font-family: \"Helvetica Neue\"; padding: 0; border: 0; margin: 0;
> background-color: transparent; } tr.graytd td { background-color:
> #000; } </style></head><body><table>";
Did you notice, that your your <body> and <table> are not closed?
I did not try to parse CSS, but W3C validators should be of great help
for both markup, and painting and decorating.
--
Daniel Drozdzewski
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en