I have a WPF .net4 app with a webBrowser component that navigates to a local HTML page that uses a CSS file.
When I navigate to the page using IE8 the CSS styling is
This is probably a little late but I stumbled on to this question in search of other answers.
the WebBrowser control by default renders in quirks mode. but in your webpage you can specify the version of IE to use to render in the meta data.
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
IE=edge instructs the WebBrowser control to use the latest version of IE it supports
The best explanation that I have heard for this behavior is that the webbrowser control is running in some form of 'compatability' mode.