Noticed that the layout of stackoverflow made using flex 's
An example of a menu in the header:
.so-header .-main { height: 100%; width: 100%; display: -webkit-flex; display: flex; -webkit-flex-flow: row nowrap; flex-flow: row nowrap; -webkit-align-items: center; align-items: center; } And in ie9 (and as I understand it in other older versions of browsers) flex is replaced with inline-block , and the styles are inline, apparently js-ohm.
An example of the same menu in the header, but for ie 9:
I do not see modernizer to be used.
Question: How can you do this with js (ask which browsers to set which styles), because css is almost always used for this?

