Editing toolbar appears fine in Chrome (at top) but at bottom in IE9?
Permalink
I have created a custom template, its all works absolutely fine and as expected in Chrome, however in IE9 whilst the template performs as expected, the 'Edit' bar and tools don't appear at the top of the page - instead there's a white strip where they should be, and all the tools are clumped together at the very base of the page.
I have specified a 'Body' tag within my CSS and tried replacing it with the suggest .C5wrapper style, but that didn't make any difference.
As I say, it all works fine in Chrome - any ideas?
p.s. I'm using the latest version of C5.
I have specified a 'Body' tag within my CSS and tried replacing it with the suggest .C5wrapper style, but that didn't make any difference.
As I say, it all works fine in Chrome - any ideas?
p.s. I'm using the latest version of C5.
In addition to the doctype, you might try forcing IE9 to use IE8 standards. I've seen a few sites that break in IE9, but work great in IE8. Add this to the head section:
Also, check that your code is valid - I recommend usinghttp://validator.w3.org/ to check it out.
<meta http-equiv="x-ua-compatible" content="IE=8" />
Also, check that your code is valid - I recommend usinghttp://validator.w3.org/ to check it out.
Thanks both. I don't actually have this string in my template at all:
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
Is it explicitly required?
So, instead I added the IE8 compatibility string that Jero provided, and immediately its working as expected ;o)
<meta http-equiv="x-ua-compatible" content="IE=8" />
Thanks dude!
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
Is it explicitly required?
So, instead I added the IE8 compatibility string that Jero provided, and immediately its working as expected ;o)
<meta http-equiv="x-ua-compatible" content="IE=8" />
Thanks dude!
Glad you got it sorted :)
The die() function isn't essential. All it does is stop the PHP file being executed out of the context of C5, i.e. if somebody starts sniffing round your site and trying to enter URLs directly. It's a security thing. Better to drive the car with a seat belt on, but the car runs just fine without one.
The die() function isn't essential. All it does is stop the PHP file being executed out of the context of C5, i.e. if somebody starts sniffing round your site and trying to enter URLs directly. It's a security thing. Better to drive the car with a seat belt on, but the car runs just fine without one.
Sounds good, and thanks again for the good advice!
Cheers,
Cheers,
For instance like this