lfm5ma
Last Updated: February 25, 2016
·
575
· subicura

css inline-block ie7 hack

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

4 Responses
Add your response

5919

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

over 1 year ago ·
5920

@basiclines wow, good tip! thank you!

over 1 year ago ·
5926

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

over 1 year ago ·
5972

@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 ·