On 7/10/11 8:33 AM, Geoff Lane wrote:
On Sunday, July 10, 2011, 1:09:55 PM, I wrote:

In IE each 'pseudo-icon' div starts a new row: that is, it seems
that IE treats the display setting of inline-block as though it were
'block'.
---

Sorry to reply to my own post, but I've discovered the reason and a
work-around and so post here for completeness and in case someone else
has the same issue:

Allegedly, IE only honours a display setting of inline-block for
elements that would be inline anyway. So for things like paragraphs,
divisions, and list items, IE won't accept 'display:inline-block'. The
work-around in my case is to use spans instead of divs.


Another technique, when a <span> would give you an HTML error, is to
add a **separate** rule for IE 7- that declares your DIV inline, viz:

#pcicon3 {
  *display: inline;
}

This goes after your "inline-block" rule.
--
Cordially,
David
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to