Hi, I have a problem that I have been working on for several days and would appreciate some help.
I have a website that shows up centered when viewing in IE at any resolution. However, when viewing the site in Google Chrome it is not centered, but rather aligned to the left of the screen. I would like it to be centered in Chrome as well.
Here is what I am currently doing, and I’m sure the problem is in here somewhere.
This is the html I am using on my page:
<!– *******START TABLE CODE*** –>
<link rel=”stylesheet” href=”
<div id=”container”><TABLE BORDER=”0″ CELLPADDING=”0″ CELLSPACING=”0″ WIDTH=”1003″ BORDERCOLORLIGHT=”#000000″ BORDERCOLORDARK=”#000000″ FRAME=”VOID” RULES=”NONE” HSPACE=”0″ VSPACE=”0″>
<tR>
<tD VALIGN=TOP BGCOLOR=#FFFFFF HEIGHT= “” WIDTH=”1003″><div><FONT SIZE=”3″ COLOR=”#000000″ FACE=”Arial,Helvetica,sans-serif”>
<!– ***END TABLE CODE
Content here
</tD>
</tR>
</TABLE>
My css file looks like this:
#container {
margin-left: 0 auto;
margin-right: 0 auto;
width: 900px;
text-align: left;
}
body {
margin: 0 0 0px 0;
text-align: center;
}
Any help would be greatly appreciated.
[CODE]
margin: 0 auto;
[/CODE]
[CODE]
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RSS Feeds </TITLE>
<div id="container">
<SCRIPT language="JavaScript">
var TlxPgNm='rssfeeds';
</SCRIPT>
<META http-equiv="GENERATOR" CONTENT="Created with CuteSITE Builder, HTML Exporter 5.0.150">
<style type="text/css">
<!--
A.Top:link {color:#FFFFCC}
A.Top:active {color:#CCCC99}
A.Top:visited {color:#CCCC99}
A.Bottom:link {color:#000000}
A.Bottom:active {color:#000000}
A.Bottom:visited {color:#000000}
A.Left:link {color:#FFFFFF}
A.Left:active {color:#FFFFFF}
A.Left:visited {color:#FFFFFF}
A.Right:link {color:#000000}
A.Right:active {color:#000000}
A.Right:visited {color:#000000}
A:link {color:#000000}
A:active {color:#000000}
A:visited {color:#000000}
-->
</style>
</HEAD>
<body topmargin=0 leftmargin=0 marginheight=0 marginwidth=0>
<table cellpadding=0 cellspacing=0 border=0><tr>
<td valign="top" colspan=3 height=100
BGCOLOR="#FFFFFF" TEXT="#080000">
<div><FONT SIZE="1" COLOR="#FFCC66" FACE="Arial,Helvetica,sans-serif"><B><!-- Start Gem Build Your Own Web Gem -->
<!-- *******START TABLE CODE******* -->
<link rel="stylesheet" href="http://www.chiefswarpath.com/style.css" type="text/css">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%" BORDERCOLORLIGHT="#000000" BORDERCOLORDARK="#000000" FRAME="VOID" RULES="NONE" HSPACE="0" VSPACE="0">
<tR>
<tD VALIGN=TOP BGCOLOR=#FFFFFF HEIGHT= "" WIDTH="100%"><div><FONT SIZE="3" COLOR="#000000" FACE="Arial,Helvetica,sans-serif">
<!-- *******END TABLE CODE******* -->
<!-- *******START HEADER CODE******* -->
<div style="text-align:RIGHT; ">
<body topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 bgcolor="#707070">
<table cellpadding=0 cellspacing=0 border=0><tr>
<td valign="top" colspan=3 height=100
BGCOLOR="#FFFFFF" TEXT="#000000" bgproperties="fixed" background="http://www.chiefswarpath.com/images/header.jpg">
<div align="right">
<!-- *******START GOOGLE AD******* -->
<script type="text/javascript"><!--
google_ad_client = "ca-pub-5751025377763738";
/* Warpath Header */
google_ad_slot = "4339788378";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- *******END GOOGLE AD******* -->
<!-- *******START IPHONE CODE******* -->
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<!-- *******END IPHONE CODE******* -->
<!-- *******START FAVICON CODE******* -->
<link rel="shortcut icon" href="http://www.chiefswarpath.com/favicon.ico" />
<!-- *******END FAVICON CODE******* -->
<!-- *******END HEADER CODE******* -->
<!-- End Gem Build Your Own Web Gem -->
</B></FONT></div>
</td>
</tr><tr>
<td valign="top" width=162
BGCOLOR="#BF0000" TEXT="#F7F7FF" background="fb5a5072dvldal.png">
<div name="margins" style="margin-left:8px; margin-top:5px; margin-right:8px; ">
<div style="text-align:CENTER; "><FONT SIZE="1" COLOR="#FFFFFF" FACE="Verdana"><!-- Start Gem Build Your Own Web Gem -->
<!--///Menu///--><script LANGUAGE="JavaScript1.2" SRC="http://www.chiefswarpath.com/includes/javamenu.js"></script><!--///End of Menu///-->
<!--///Highlight///-->
<style>
a:hover{color:#bf0000; }
</style>
<!--///End of Highlight///-->
<!--///Logger///-->
<script>
a=new Image();
refer=document.referrer;
doc=document.location;
x=screen.width;
y=screen.height;
a.src="http://www.chiefswarpath.com/cgi-bin/advlogger/logger.cgi?ref="+escape(refer)+"&doc="+escape(doc)+"&res="+x+"x"+y;
</script>
<!--///End of Logger///-->
<!-- End Gem Build Your Own Web Gem -->
</FONT></div>
</div>
<IMG BORDER="0" SRC="1x1.gif" HEIGHT=1 WIDTH=162></td>
<td valign="top" height=330
width="100%" BGCOLOR="#FFFFFF" TEXT="#080000">
<div name="margins" style="margin-left:15px; margin-top:10px; margin-right:15px; ">
<div style="text-align:CENTER; "><FONT SIZE="3" COLOR="#BF0000" FACE="Verdana"><B><!-- Start Gem Build Your Own Web Gem -->
<img src="/pageheaders/rssfeeds.gif" alt="RSS Feeds" title="RSS Feeds">
<!-- End Gem Build Your Own Web Gem -->
</B></FONT></div>
<div><IMG BORDER="0" SRC="1x1.gif" HEIGHT="11" ALIGN="bottom" WIDTH="1" HSPACE="0" VSPACE="0"
></div>
<div><FONT SIZE="2" COLOR="#000000" FACE="Verdana">The following RSS feeds are available on ChiefsWarpath.com:</FONT></div>
<bR>
<div style="margin-left:24px; text-indent:-24px; "><FONT SIZE="2" COLOR="#000000" FACE="Verdana"><A HREF="http://www.chiefswarpath.com/news/feed/" TARGET="_top" TITLE="http://www.chiefswarpath.com/news/feed/"><B><IMG BORDER="0" SRC="Wing0a73007700c800000000.png" HEIGHT="13" WIDTH="24" ALIGN="bottom" HSPACE="0" VSPACE="0">All News</B></A></FONT></div>
<div><IMG BORDER="0" SRC="1x1.gif" HEIGHT="4" ALIGN="bottom" WIDTH="1" HSPACE="0" VSPACE="0"
></div>
<div style="margin-left:24px; text-indent:-24px; "><FONT SIZE="2" COLOR="#000000" FACE="Verdana"><A HREF="http://www.chiefswarpath.com/news/category/latestnews/feed/" TARGET="_top" TITLE="http://www.chiefswarpath.com/news/catego"><B><IMG BORDER="0" SRC="Wing0a73007700c800000000.png" HEIGHT="13" WIDTH="24" ALIGN="bottom" HSPACE="0" VSPACE="0">Latest News</B></A></FONT></div>
<div><IMG BORDER="0" SRC="1x1.gif" HEIGHT="4" ALIGN="bottom" WIDTH="1" HSPACE="0" VSPACE="0"
></div>
<div style="margin-left:24px; text-indent:-24px; "><FONT SIZE="2" COLOR="#000000" FACE="Verdana"><A HREF="http://www.chiefswarpath.com/news/category/commentary/feed/" TARGET="_top" TITLE="http://www.chiefswarpath.com/news/catego"><B><IMG BORDER="0" SRC="Wing0a73007700c800000000.png" HEIGHT="13" WIDTH="24" ALIGN="bottom" HSPACE="0" VSPACE="0">Commentary</B></A></FONT></div>
<div><IMG BORDER="0" SRC="1x1.gif" HEIGHT="4" ALIGN="bottom" WIDTH="1" HSPACE="0" VSPACE="0"
></div>
<div style="margin-left:24px; text-indent:-24px; "><FONT SIZE="2" COLOR="#000000" FACE="Verdana"><A HREF="http://www.chiefswarpath.com/news/category/chiefheadlines/feed/" TARGET="_top" TITLE="http://www.chiefswarpath.com/news/catego"><B><IMG BORDER="0" SRC="Wing0a73007700c800000000.png" HEIGHT="13" WIDTH="24" ALIGN="bottom" HSPACE="0" VSPACE="0">Chief Headlines</B></A></FONT></div>
<div><IMG BORDER="0" SRC="1x1.gif" HEIGHT="4" ALIGN="bottom" WIDTH="1" HSPACE="0" VSPACE="0"
></div>
<bR>
<div><FONT SIZE="2" COLOR="#000000" FACE="Verdana"><B>What is RSS?</B></FONT></div>
<bR>
<div><FONT SIZE="2" COLOR="#000000" FACE="Verdana">RSS allows sites like this one to syndicate content to other sites and news readers. It will allow you to keep track of when this site is updated.</FONT></div>
<bR>
<div><FONT SIZE="2" COLOR="#000000" FACE="Verdana"><B>How do I use RSS feeds?</B></FONT></div>
<bR>
<div><FONT SIZE="2" COLOR="#000000" FACE="Verdana">All modern browsers have built in RSS readers. There are also a number of services like iGoogle, MyYahoo! and MSN that allow you to put RSS feed URL's into your personal pages and show you a feed of the latest content from this site.</FONT></div>
</div>
</td>
<td valign="top" width=180
BGCOLOR="#DDDDDD" TEXT="#080000">
<div name="margins" style="margin-left:10px; margin-top:5px; margin-right:10px; ">
<div style="text-align:CENTER; "><FONT SIZE="1" COLOR="#000000" FACE="Verdana"><!-- Start Gem Build Your Own Web Gem -->
<!-- *******START RIGHT FRAME HP******* -->
<div style="text-align:CENTER; "><FONT SIZE="1" COLOR="#000000" FACE="Verdana"><a href="http://www.chiefswarpath.com/rssfeeds.htm"><IMG SRC="http://www.chiefswarpath.com/images/rss.jpg" border=0 width="25" height="25" ALT="RSS" title="RSS" ALIGN="BOTTOM" HSPACE="0" VSPACE="0"></a> <a href="http://www.facebook.com/chiefswarpath" target="_blank"><IMG SRC="http://www.chiefswarpath.com/images/fbook.jpg" border=0 width="25" height="25" ALT="Facebook" title="Facebook" ALIGN="BOTTOM" HSPACE="0" VSPACE="0"></a> <a href="http://twitter.com/chiefswarpath_" target="_blank"><IMG SRC="http://www.chiefswarpath.com/images/twit.jpg" border=0 width="25" height="25" ALT="Twitter" title="Twitter" ALIGN="BOTTOM" HSPACE="0" VSPACE="0"></a></div><p>
<font face="verdana" size="1" color="#000000">
</font>
<!-- *******START GOOGLE AD******* -->
<script type="text/javascript"><!--
google_ad_client = "ca-pub-5751025377763738";
/* Warpath Side Ad */
google_ad_slot = "8906668207";
google_ad_width = 120;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- *******END GOOGLE AD******* -->
<p>
<a href="http://www.chiefswarpath.com/features/fanshop.htm"><img src="/images/125x125ff.jpg" alt="Warpath Fan Shop" title="Warpath Fan Shop" border="0"></a>
<p>
<!-- *******END RIGHT FRAME HP******* -->
<!-- End Gem Build Your Own Web Gem -->
</FONT></div>
</div>
<IMG BORDER="0" SRC="1x1.gif" HEIGHT=1 WIDTH=180></td>
</tr><tr>
<td valign="top" colspan=3 height=50
BGCOLOR="#000000" TEXT="#F7F7FF">
<div name="margins" style="margin-left:10px; margin-top:10px; margin-right:10px; ">
<div style="text-align:CENTER; "><FONT SIZE="1" COLOR="#FFFFFF" FACE="Verdana"><!-- Start Gem Build Your Own Web Gem -->
<!--///Footer///--><script LANGUAGE="JavaScript1.2" SRC="http://www.chiefswarpath.com/includes/footer.js"></script><!--///End of Footer///-->
<!-- *******START TABLE CODE******* -->
</FONT></div>
</tD>
</tR>
</TABLE>
<!-- *******END TABLE CODE******* -->
<!-- End Gem Build Your Own Web Gem -->
</FONT></div>
</div>
</td>
</tr></table></body>
</HTML>[/CODE]
[CODE]body {
text-align: center;
}
#container {
margin-left: auto;
margin-right: auto;
width: 900px;
text-align: left;
} [/CODE]
0.1.9 — BETA 5.3