Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    +1 for the reference to caniuse.com, which I hadn't heard of, and which appears to be awesome. Commented Jun 10, 2011 at 15:26
  • An IE7-only stylesheet would be appropriate to use in this situation. Let the ugly old browser use float:left and everyone else use display: table-cell. Commented Apr 18, 2012 at 15:43
  • +1 for the alternative (float:left + overflow:hidden). Also explained here. Commented Aug 27, 2014 at 19:50
  • I like this technique a lot. The only problem I've ever had was when I was trying to position something with position:absolute; inside of a table-cell element. It didn't work on IE8 and I don't remember if we had the same problem with IE9. But aside from that, I've never had any problems. Commented Nov 27, 2015 at 0:03
  • what about mobile devices support? Commented Jul 9, 2017 at 7:45