The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS IE Inline-block Trouble Re: IE Inline-block Trouble


I’m not sure you’re understanding the problem.

I have an image it’s wrapped in a div. The div needs to fit around the image with no spaces. You do that by telling the div to display inline-block. However, IE has a problem changing block elements into inline-block elements.

The only solution I’ve come up with so far is to switch out the divs with an inline element, like a span, because IE doesn’t have a problem changing inline elements to display inline-block. But that’s actually more work than it sounds for several reasons and I’d like to avoid it if possible. I’m hoping there’s a CSS solution.