I am currently developing a html/css menu. My issue is that the page that the menu will be inserted in, when loaded, causes the browser to go into quirks and compatibility mode. I cannot control this.
Here is my css:
.community-menu {
margin: 5px;
display: inline-block;
text-align: center;
vertical-align: middle;
padding: 15px 30px;
cursor: pointer;
}
#container {
width: 100%;
position: relative;
text-align: center;
}
My issue is that inline-block in IE quirks and compatibility mode causes the menus to take up full width of its parent div.
Here is what the divs look like in Chrome and Firefox:

In IE the same divs expand to full width of parent div

What I am trying to achieve is centred divs that resize with text contents that as the browser resizes are automatically pushed down.
I found some code from another SO question that shows my issue here when viewed with IE in compatibility and quirks mode.
Following a comment by Spudley here is a pic to show the default mode it loads in.

Even though it says IE8, the end result is the same in IE9. On different pc today :)
inline-block. There is no way around that. Why can you not use standards compliance mode? - Mr ListerX-UA-Compatible: IE=edgeHTTP response header to your server settings, or add<meta http-equiv="X-UA-Compatible" content="IE=edge" />element to deny switching to compatibility-view mode. - Marat Tanalin