Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Need help with IE issues Reply To: Need help with IE issues

#144197
leetempest
Participant

Thanks for the replies, there is actually a shedload of code above the DOCTYPE as this is a Joomla template

<!–[if lt IE 7]> <html class=”no-js lt-ie9 lt-ie8 lt-ie7″> <![endif]–>
<!–[if IE 7]> <html class=”no-js lt-ie9 lt-ie8″> <![endif]–>
<!–[if IE 8]> <html class=”no-js lt-ie9″> <![endif]–>
<!–[if gt IE 8]><!–> <html class=”no-js”> <!–<![endif]–>
<?php

defined(‘_JEXEC’) or die;

// Getting params from template
$params = JFactory::getApplication()->getTemplate(true)->params;

$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$this->language = $doc->language;
$this->direction = $doc->direction;
$menu = $app->getMenu()->getActive();
$pageclass = ”;

if (is_object($menu))
$pageclass = $menu->params->get(‘pageclass_sfx’);

// Detecting Active Variables
$option = $app->input->getCmd(‘option’, ”);
$view = $app->input->getCmd(‘view’, ”);
$layout = $app->input->getCmd(‘layout’, ”);
$task = $app->input->getCmd(‘task’, ”);
$itemid = $app->input->getCmd(‘Itemid’, ”);
$sitename = $app->getCfg(‘sitename’);

if($task == “edit” || $layout == “form” )
{
$fullWidth = 1;
}
else
{
$fullWidth = 0;
}

// Add Stylesheets
$doc->addStyleSheet(‘templates/’.$this->template.’/css/bootstrap.min.css’);
$doc->addStyleSheet(‘templates/’.$this->template.’/css/bootstrap-responsive.min.css’);
$doc->addStyleSheet(‘templates/’.$this->template.’/css/bowcora.css’);

?>

I’ve always had code above the doctype in other Joomla sites and never had any issues before.

This is based on a vanilla template from http://www.initializr.com/ and looking at their code it has code above the DOCTYPE.

Lee