Previous Message
Next Message

Div mostly disappears when adding a span tag in IE7

Sent by Devon Miller on 6 December 2006 15:03

On 12/5/06, Mark Wheeler [EMAIL-REMOVED]> wrote:
> Hi,
> I have a problem in IE7. Believe it or not, IE6 is fine on this
> one. :) Here's the problem.
> I have a floated (right) div and then text on the left (not floated).
> I've surrounded the text in a single span tag (.names) so as to set
> everything in the text to italic. Works great except in IE7, where
> the floated div (#info_box - floated right) partially (mostly)
> disappears. I even tried to span each individual short line of text
> with italics and had the same problem. This makes no sense, and was
> the last think I expected. Any help would be greatly appreciated.
> here's the links.
> Site:
> CSS:

Now, I'll admit I'm not clear why this works, but adding:
        display: inline-block
to .names seems to do the trick.

css-discuss [EMAIL-REMOVED]]
IE7 information --
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Message thread: