I am dynamically generating HTML and feeding it into a UIWebView. I have a few tables of data displaying and I can’t get them to stretch the full width of the screen.
So far I have tried…
- 100% width attribute on table
- 100% width style on table
- widths on all cells adding up to 100%
- style in head applying 100% width to all tables (and * sub elements)
I have also tried XHTML 4.01 and HTML 5 doctypes in case that might be causing display issues. Here is what it current looks like…
[unfortunately I am a noob and can’t post pictures yet]
I simply want them to fill all the space inside the 1px keyline surrounding the tables. Any ideas?
I just figured it out.
Because I was building the HTML dynamically (appending to an
NSMutableString), my percent sign was being treated as a format specifier and was disregarded.I had to escape with a second percent sign and everything is working.
Thanks for the help.