Monday, May 14, 2012

CSS Cross browser support for 'display: inline-block'

I had one of those where-have-I-been moments today. I found a new favorite technique in HTML CSS design:
  display: inline-block;
I was briefly discouraged when I realized the code did not seem to work for IE. Then I found Isaac Schlueter's blog, Foo Hack and all is well in the world again.
  display:-moz-inline-stack;
  display:inline-block;
  zoom:1;
  *display:inline;
Even though it brings a whole bunch of new problems, every time I hit one of these incompatibility issues, I can't help wishing there were one browser to rule them all.

No comments:

Post a Comment