lfm5ma
Last Updated: February 25, 2016
·
517
· subicura
361bc707921efd2c48ad7f41a4edca64

css inline-block ie7 hack

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

4 Responses
Add your response

5919
1b9603a9c41218574cea992367b97474

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

over 1 year ago ·
5920
361bc707921efd2c48ad7f41a4edca64

@basiclines wow, good tip! thank you!

over 1 year ago ·
5926
Bf88e319077e4746a6efb4762f6d4b74

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

over 1 year ago ·
5972
Photo on 08.01.2013 at 04.15

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