I have a WebView, and want it to load this html.
[[docPreview mainFrame] loadHTMLString:@"<head>\n<style type=\"text/css\">\n<!--\n.style1 {\nfont-family: \"Lucida Grande\";\nfont-size: 13px;\n}\n.style3 {\nfont-size: 11px;\ncolor: #666666;\n}\n-->\n</style>\n</head>\n<body>\n<table width=\"100%\" height=\"100\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n<tr valign=\"middle\">\n<td valign=\"middle\"><div align=\"center\">\n<div align=\"center\" class=\"style1\">\n<p>Instant Preview<br>\n<span class=\"style3\">A live version of your website will appear here.</span></p>\n</div>\n</div></td>\n</tr>\n</table>\n</body>" baseURL:[NSURL URLWithString:@"http://www.apple.com"]];
Now, I want valign to be middle, so the text I have stays in the center vertically and horizontally, any ideas?