Last Updated: February 25, 2016
·
746
· subicura

css inline-block ie7 hack

<!--[if IE 7]>
<style>
.menu {
    zoom:1; 
    *display:inline
}
</style>
<![endif]-->

4 Responses
Add your response

cross-browser method:
.element { display: inline-block; *display: inline; zoom: 1; }

over 1 year ago ·

@basiclines wow, good tip! thank you!

over 1 year ago ·

Thanks for the tip. For those wondering about the relevance of setting zoom to 1: http://bit.ly/13xMAf2

over 1 year ago ·

@basiclines I don't like hacks like that.
@subicura You don't need to put that * if you use if IE 7. This is hack.

over 1 year ago ·