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.

 
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Make sure you have a "DOCTYPE" declaration on the second line of your header immediately after,
<?php   defined('C5_EXECUTE') or die(_("Access Denied.")); ?>

For instance like this
<?php   defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<!DOCTYPE html>
jero replied on at Permalink Best Answer Reply
jero
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:

<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.
sergeant replied on at Permalink Reply
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!
jero replied on at Permalink Reply
jero
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.
sergeant replied on at Permalink Reply
Sounds good, and thanks again for the good advice!

Cheers,