Hi, I am facing a problem in Android WebView. The code is:- ... String result = "<html><body style=\"background-color:transparent\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight= \"0\"><table border=\"0\" width=\"200px\" cellspacing=\"0\" cellpadding=\"0\" style=\"color:black; font:12pt sans-serif;\"><tr><td height=\"50\" style=\"padding-left:10px;background-color:#1f7280;font- weight:bold;color:#fff;\">Generic Name</td></tr><tr><td valign=\'center \'><center>abciximab<br/>ab-<b>six</b>-i-mab</center></td></tr></ table></body></html>"; ... And when I run the code ... WebView webView = (WebView) findViewById(R.id.flashcard); webView.loadData(result , "text/html", "utf-8");
Every thing gets displayed fine. But, when I change px to % in the width attribute i.e ...<table border...width=\"100%\"...>...</table>... from ...<table border...width=\"200px\"...>...</table>... The html page is not rendered in WebView and I get the message Web Page Not Available The Web Page at ..... might be temporarily...address. Can any one suggest how one may use % in attribute values? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en