Author Topic: PHP Help?  (Read 2274 times)

0 Members and 1 Guest are viewing this topic.

Offline 92merc

  • Forecaster
  • *****
  • Posts: 1226
PHP Help?
« on: November 10, 2008, 12:12:45 PM »
I have the PHP script from PlainsWeather Network on my site.  But for the life of me, I can't center anything.  I'd like my "header" with navbar and "footer" to be centered on the page.  Not left.  The rest can stay left.  I tried using a table to center things up and make some margins.  But the whole thing won't center right.

Code: [Select]
header("Cache-Control: no-cache,no-store,  must-revalidate");
header("Cache-Control: post-check=0, pre-check=0"false);
header("Pragma: no-cache");
$NOWdate gmdate("D, d M Y H:i:s"time());
header("Expires: $NOWdate GMT");
header("Last-Modified: $NOWdate GMT");

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Refresh" content="300" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta name="author" content="Ken True" />
<meta name="copyright" content="&copy; 2008" />
<meta name="Keywords" content="weather, Weather, temperature, dew point, humidity, forecast, weather conditions, live weather, live weather conditions, weather data, weather history, Lightning, WebCam, NetCam, weather stations, weather station, weather radio, gps, weather equipment, weather instrument, weathervane, oregon scientific, lacrosse technology, davis instruments, vantage pro, meteorology, wireless thermometer, barometer, wind, rain gauge, gauges, atomic clock, watch, digital, midland, kestrel" />
<meta name="Description" content="Plains Weather Network on, Weather conditions for Midwestern USA,weather station equipment, weather radios, weathervanes, gps and instruments from Oregon Scientific, La Crosse Technology, Davis Instruments, Kestrel Instruments" />
<title>Plains Weather Network on</title>

<body style="font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px; width: 620px;">
  <table border="0" width="80%" align="center">
    <tr align="center">
      <td align="center"><img src="../bw.png" width="574" height="58" /></td>
    <tr align="center">
      <td><img src="../divider.gif" width="737" height="5" /></td>
    <tr align="center">
      <td> <script webstyle3 src="../navbar/navbar.js"></script></td>
      <td bgcolor="#CCCCFF"><b><font face="Arial"><a href="" target="_blank">Plains
        Weather Network</a></font></b></td>
    <tr align="left">
      <td><?php print $PWN_MAP; print $PWN_TABLE?></td>

<p align="center"><B> <FONT face=arial size=1 color="gray"><img src="../divider.gif" width="737" height="5" /><br />
  Never base important decisions on this or any weather information obtained from
  the Internet.<br>
  Page information courtesy of the Plains Weather Network.<br> and rights reserved</FONT></B></p>
<script src="" type="text/javascript">
<script type="text/javascript">
_uacct = "UA-1598212-1";

Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI