0

I'm using TWebBrowser to preview generated HTML pages and was using the CSS box-sizing:border-box to specify the box model and trying to use display:table display:table-cell vertical-align:middle to achieve vertically aligned text.

The problem is that while ordinary IE10 or IE11 applies this CSS, giving nicely sized and centred text, the TWebBrowser in my program doesn't.

  • MSIE embedded uses interanet-compatibility mode, thet means uses MSIE-6 mode. MSIE-6 i think did not supported those CSS goodies. Your app has to opt out of MSIE-6 mode i think. – Arioch 'The Jan 09 '14 at 12:40
  • http://blogs.msdn.com/b/ie/archive/2009/03/10/more-ie8-extensibility-improvements.aspx and http://blogs.msdn.com/b/ie/archive/2008/03/18/webbrowser-control-rendering-modes-in-ie8.aspx – Arioch 'The Jan 09 '14 at 12:42
  • http://stackoverflow.com/questions/6717055 and maybe http://stackoverflow.com/questions/4097593/ – Arioch 'The Jan 09 '14 at 12:43
  • 1
    @Arioch - that's got it! Would you like to make that an answer so I can mark it accepted. Many thanks. – Ed Weatherup Jan 09 '14 at 13:17
  • I'd actually would like to make it a dup, but do not know which question to link as duplicate – Arioch 'The Jan 09 '14 at 13:35
  • 2
    Looks to be closest to 6717055 – Ed Weatherup Jan 09 '14 at 13:44
  • Voting to leave open as per http://meta.stackexchange.com/questions/139961/whats-the-policy-on-closing-unique-questions-with-overlapping-but-non-duplicat The question is about the specific (and quite common) symptom and may be valuable to others. – Jan Doggen Jan 23 '14 at 13:48

0 Answers0