Problem with Code In IE8

thebradnetwork used Ask the Experts™
Unfortunately with the release of IE8 I am running into display problems on a webpage. Please visit . In Firefox it displays normally but in IE8 gives me a endif in the middle of the screen and doesn't display any of the data. Anyway I can fix this? I am using the latest version of Joomla 1.5 to run my site. I have displayed the PHP code.
defined( '_JEXEC' ) or die( 'Restricted access' );
JPlugin::loadLanguage( 'tpl_SG1' );
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" href="templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<!--[if lte IE 7]>
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/ie7.css" type="text/css" />
<body id="page_bg">
		<div align="center">
			<table width="904" border="0" cellspacing="0" cellpadding="0" cool="cool" gridx="16" gridy="16" height="442" showgridx="showgridx" showgridy="showgridy" usegridx="usegridx" usegridy="usegridy">
				<tr height="135">
					<td width="903" height="135" valign="top" align="left" xpos="0"><img src="images/top.jpg" alt="" width="903" height="135" border="0"/></td>
					<td width="1" height="135"><spacer type="block" width="1" height="135"/></td>
				<tr height="306">
					<td width="903" height="306" valign="top" align="left" xpos="0"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=",0,0,0" height="306" width="903">
							<param name="movie" value="header.swf"/>
							<param name="quality" value="best"/>
							<param name="play" value="true"/>
							<embed height="306" pluginspage="" src="header.swf" type="application/x-shockwave-flash" width="903" quality="best" play="true"></embed>
					<td width="1" height="306"><spacer type="block" width="1" height="306"/></td>
				<tr height="1" cntrlrow="cntrlrow">
					<td width="903" height="1"><spacer type="block" width="903" height="1"/></td>
					<td width="1" height="1"></td>
		<a href="index.php"><?php echo $mainframe->getCfg('sitename') ;?></a>
		<div class="pill_m">
			<div id="pillmenu">
				<jdoc:include type="modules" name="user3" />
	<div class="clr"></div>
	<div class="center">		
		<div id="wrapper">
			<div id="content">
					<div id="leftcolumn">
					<jdoc:include type="modules" name="left" style="rounded" />
				<div id="maincolumn">	
					<div class="nopad">
						<?php if($this->params->get('showComponent')) : ?>
							<jdoc:include type="component" />
						<?php endif; ?>
				<div class="clr">
		<div id="content_bottom"></div>			
	<jdoc:include type="modules" name="debug" />
		<div id="footer">
		<p><?php $sg = ''; include "templates.php"; ?></p>
		<div id="sgf">
			<div align="center">
			<h5><font color="#333333">
				Opelika High School: 1700 Lafayette Pkwy Opelika, AL 36801<br/>
			Phone: 334.745.9715     |   Fax: 334.745.9721<br/>
<script language="JScript" type="text/jscript" src="/NoIEActivate.js"></script>

Open in new window

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
please use this link

you have some errors in your html

you closed more divs that you opened etc

after fixing this errors you can't see it correct please ask for further assistance
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

after fixing your errors, you can add this tag to your head area in your template to force the template to use the IE7 engine in IE8.  
Wow, sorry, I realize now that you already had it.  Please forgive my oversight.
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!


No worries...i am beginning to think that the error isnt in the template but in joomla itself. I have tried 3 other templates and one was the default joomla template and they all gave the the error.

It looks like it's fixed is it?
I fixed it by restoring the old database

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial