Use latest CSS in Winforms Web Browser Control
I have been utilizing the Winforms Web Browser control (this one) for a feature (yes yes I know Winforms is old as the hills blah blah blah).
Anyway I wanted to add a fixed navigation bar like seen here. However whenever I did this using position:fixed; etc. it would not work.
I thought I was doomed to hack around this by adding another Web Browser control above the main form to use specifically for a naviagation bar. But I did stumble across this post from 2011.
Although this is mainly for the Internet Explorer Web Browser Control in WPF, I tried the “hack” of including a meta tag that overode the default rendering engine used by this control (I believe it IE7) and in doing so managed to get my navigation bar working!!!.
Simply include:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
at the top inside your head tag and specify the content value. For what its worth I only needed to go upto IE10 support to get the Fixed Navigation bar CSS working.
Hope this helps












