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


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]–>

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;
$fullWidth = 0;

// Add Stylesheets


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 and looking at their code it has code above the DOCTYPE.