Thursday, September 27, 2007

IE VML Fun

I'm playing the silly game today called make rounded corners in IE.
I was trying to do my infamous VML trick and found the browser wouldn't render any VML. WTH? Its always worked before.

Later, I discover that there is a bug in IE6/7 rendering VML when in standards compliance mode (the jokes this begs for are innumerable).

Solution, add display:inline-block; to the css.

So, now the basic css for VML reads:

v\:* {
behavior: url(#default#VML);
display:inline-block;
}

permalink
Links to this post

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home

Links to this post on: