Forums
|
|
|
|
Page 1 of 1
|
[ 6 posts ] |
|
crashes all versions of IE when used in body{}
| Author |
Message |
|
eobanb
Joined: Mon Jul 19, 2010 12:45 pm Posts: 2
|
 crashes all versions of IE when used in body{}
CSS3PIE appears to crash all versions of IE when applied to body {}, for instance: body { border-radius: 10px; behavior: url(/wp-content/themes/knallertbanden-mk-ii/PIE.htc); } The site is http://eoban.com/. CSS3PIE is invoked on line 290 of my stylesheet. Anyone else replicate this?
|
| Mon Jul 19, 2010 12:51 pm |
|
 |
|
matthewdl
Joined: Thu Jul 15, 2010 1:56 pm Posts: 34
|
 Re: crashes all versions of IE when used in body{}
Is this done to try to force an error? Because what, pray tell, would a body with rounded corners look like?
|
| Mon Jul 19, 2010 1:02 pm |
|
 |
|
eobanb
Joined: Mon Jul 19, 2010 12:45 pm Posts: 2
|
 Re: crashes all versions of IE when used in body{}
Quote: Because what, pray tell, would a body with rounded corners look like? Well, why don't you just go to my site and look? There are rounded corners.
|
| Mon Jul 19, 2010 1:15 pm |
|
 |
|
eentzel
Joined: Fri Jul 16, 2010 3:09 pm Posts: 2
|
 Re: crashes all versions of IE when used in body{}
I don't believe applying PIE to the body is supported: http://github.com/lojjic/PIE/issues/#issue/29Your best bet might be to use a container div and style that rather than styling the body directly.
|
| Mon Jul 19, 2010 2:59 pm |
|
 |
|
Spudley
Joined: Mon Jul 19, 2010 4:46 am Posts: 34
|
 Re: crashes all versions of IE when used in body{}
The reason it won't work is because PIE does its magic by adding additional elements behind the element being styled.
Obviously the <body> tag is a special case; it can't have anything behind it or outside of it in the DOM, so trying to do that will cause problems. I'm not surprised that IE freaks out.
|
| Tue Jul 20, 2010 2:12 am |
|
 |
|
matthewdl
Joined: Thu Jul 15, 2010 1:56 pm Posts: 34
|
 Re: crashes all versions of IE when used in body{}
Ah, I see. Well, my confusion is that normally I don't style the body element in that way. Backgrounds for body's are often attached to the entire frame beyond the content length, making it a special kind of element, and I always considered it risky (from a browser support perspective) to do extensive styling on it for that reason.
In other words, you can totally get away with this design by adding a #wrapper element around your content, which is a pretty common practice. Then it may be styled to your heart's content like this design using CSS3pie.
-Matthew
|
| Wed Jul 21, 2010 1:45 pm |
|
|
|
Page 1 of 1
|
[ 6 posts ] |
|
Who is online |
Users browsing this forum: Bing [Bot], Google [Bot] and 4 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|