IHi
I have a problem with a theme layout which is not displaying correctly in Explorer..all the blocks are printed in the left hand sidebar. The problem does not happen in Firefox. The theme was created in Aristeer.
Here is the page.tpl and the result can be seen http://www.magnet-publishing.co.uk/simondrupal/ Any help or insights would be gratefully recieved as I am no PHP expert!
Simon
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo get_page_language($language); ?>" xml:lang="<?php echo get_page_language($language); ?>">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<?php echo $head; ?>
<title><?php if (isset($head_title )) { echo $head_title; } ?></title>
<?php echo $styles ?>
<?php echo $scripts ?>
<!--[if IE 6]><link rel="stylesheet" href="<?php echo $base_path . $directory; ?>/style.ie6.css" type="text/css" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="<?php echo $base_path . $directory; ?>/style.ie7.css" type="text/css" media="screen" /><![endif]-->
<script type="text/javascript">if (Drupal.jsEnabled) {$(document).ready(function(){
window.setTimeout("artNoStyleAdding(document)", 2000);});}</script>
<script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
</head>
<body>
<div id="art-page-background-simple-gradient">
</div>
<div id="art-main">
<div class="art-Sheet">
<div class="art-Sheet-cc"></div>
<div class="art-Sheet-body">
<?php if (!empty($banner1)) { echo '<div id="banner-1">'.$banner1.'</div>'; } ?>
<?php if (!empty($navigation)): ?>
<div class="art-nav">
<div class="l"></div>
<div class="r"></div>
<?php echo $navigation; ?>
</div>
<?php endif;?>
<?php echo art_placeholders_output($top1, $top2, $top3); ?>
<div class="art-contentLayout">
<?php if (!empty($left)) echo '<div class="art-sidebar1">' . $left . "</div>";
else if (!empty($sidebar_left)) echo '<div class="art-sidebar1">' . $sidebar_left. "</div>";?>
<div class="<?php $l = null;
if (!empty($left)) $l = $left;
else if (!empty($sidebar_left)) $l=$sidebar_left;
$r = null;
if (!empty($right)) $r = $right;
else if (!empty($sidebar_right)) $r=$sidebar_right;
echo art_get_content_cell_style($l, $r, $content); ?>">
<?php if (!empty($banner2)) { echo '<div id="banner-2">'.$banner2.'</div>'; } ?>
<?php if ((!empty($user1)) && (!empty($user2))) : ?>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top"><td width="50%"><?php echo $user1; ?></td>
<td><?php echo $user2; ?></td></tr>
</table>
<?php else: ?>
<?php if (!empty($user1)) { echo '<div id="user1">'.$user1.'</div>'; }?>
<?php if (!empty($user2)) { echo '<div id="user2">'.$user2.'</div>'; }?>
<?php endif; ?>
<?php if (!empty($banner3)) { echo '<div id="banner-3">'.$banner3.'</div>'; } ?>
<?php if (($is_front) or ($node->nid) ): ?>
<?php if (!empty($breadcrumb) || !empty($tabs) || !empty($tabs2)): ?>
<div class="art-Post">
<div class="art-Post-body">
<div class="art-Post-inner">
<div class="art-PostContent">
<?php if (!empty($breadcrumb)) { echo $breadcrumb; } ?>
<?php if (!empty($tabs)) { echo $tabs.'<div class="cleared"></div>'; }; ?>
<?php if (!empty($tabs2)) { echo $tabs2.'<div class="cleared"></div>'; } ?>
</div>
<div class="cleared"></div>
</div>
</div>
</div>
<?php endif; ?>
<?php if (!empty($mission)) { echo '<div id="mission">'.$mission.'</div>'; }; ?>
<?php if (!empty($help)) { echo $help; } ?>
<?php if (!empty($messages)) { echo $messages; } ?>
<?php echo art_content_replace($content); ?>
<?php else: ?>
<div class="art-Post">
<div class="art-Post-body">
<div class="art-Post-inner">
<div class="art-PostContent">
<?php if (!empty($breadcrumb)) { echo $breadcrumb; } ?>
<?php if (!empty($title)): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif; ?>
<?php if (!empty($tabs)) { echo $tabs.'<div class="cleared"></div>'; }; ?>
<?php if (!empty($tabs2)) { echo $tabs2.'<div class="cleared"></div>'; } ?>
<?php if (!empty($mission)) { echo '<div id="mission">'.$mission.'</div>'; }; ?>
<?php if (!empty($help)) { echo $help; } ?>
<?php if (!empty($messages)) { echo $messages; } ?>
<?php echo art_content_replace($content); ?>
</div>
<div class="cleared"></div>
</div>
</div>
</div>
<?php endif; ?>
<?php if (!empty($banner4)) { echo '<div id="banner-4">'.$banner4.'</div>'; } ?>
<?php if (!empty($user3) && !empty($user4)) : ?>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top"><td width="50%"><?php echo $user3; ?></td>
<td><?php echo $user4; ?></td></tr>
</table>
<?php else: ?>
<?php if (!empty($user3)) { echo '<div id="user1">'.$user3.'</div>'; }?>
<?php if (!empty($user4)) { echo '<div id="user2">'.$user4.'</div>'; }?>
<?php endif; ?>
<?php if (!empty($banner5)) { echo '<div id="banner-5">'.$banner5.'</div>'; } ?>
</div>
<?php if (!empty($right)) echo '<div class="art-sidebar2">' . $right . "</div>";
else if (!empty($sidebar_right)) echo '<div class="art-sidebar2">' . $sidebar_right . "</div>";?>
</div>
<div class="cleared"></div>
<?php echo art_placeholders_output($bottom1, $bottom2, $bottom3); ?>
<?php if (!empty($banner6)) { echo '<div id="banner-6">'.$banner6.'</div>'; } ?>
<div class="art-Footer">
<div class="art-Footer-inner">
<div class="art-Footer-text">
<?php
if (!empty($footer_message) && (trim($footer_message) != '')) {
echo $footer_message;
}
else {
echo '<p><a href="">Contact Us</a> | <a href="http://ww.magnet-publishing.co.uk">Site Designed by Magnet Publishing</a> | <Br>'.
'Copyright © 2009 '.$site_name.'. All Rights Reserved.</p>';
}
?>
<?php if (!empty($copyright)) { echo $copyright; } ?>
</div>
</div>
<div class="art-Footer-background"></div>
</div>
</div>
</div>
<?php print $closure; ?>
</body>
</html>
Fixed
I fixed it ..it was so slack HTML in a table..checked via http://validator.w3.org