Allowing IE8 to render websites like IE7
7th September, 2011 in Technical
It is well known all Internet Explorer browsers render content differently, and we used to have different stylesheets for different versions.
With IE8 you can add in a META tag to tell IE8 to render websites like IE7. So this means no need to have yet another stylesheet for IE8, it can use the IE7 stylesheet.
The following code in the HEAD section BEFORE the stylesheets will achieve this:
<meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE7” />
But in Joomla, if you use the recommended way to insert a stylesheet into your template (using $document->addStyleSheet) AND you want your <title> to come first, you cannot easily add this code without hacking core files.
So to achieve this you can insert this line in Joomla index.php using the following code BEFORE your $document->addStyleSheet code.
$this->setMetaData( ‘X-UA-Compatible’, ‘IE=EmulateIE7’, true );
Recent
22nd November, 2017 in
Amity is pleased to announce it's sister web design company has launched in Newport. http://nettlofnewport.co.uk will design & build, host & support and digitally market websites for customers in and around Newport, South Wales, using Amity as the technical backend. Nettl will also offer design & print material for marketing & exhibitions.
Did you know that approximately 96% of people leave a website without taking the action the website owner would like them to complete? Whether it’s buying a product, signing up to a mailing list or requesting a callback, the vast majority of people visiting your site do not do it!
28th November, 2016 in Advice
When did you last check the speed of your website? According to Google’s guide for webmasters, a good eCommerce website should load fully in under 2 seconds...
If your business isn’t currently using social media, now is the time to consider why that is.
25th October, 2016 in Advice, Amity News
December is the perfect time to kick-start campaigns and refresh your marketing. Even if the nature of your business isn’t remotely festive, your customers will appreciate the goodwill of a seasonal offer to two, or simply a friendly ‘Merry Christmas’ message.