Author Topic: PHP Help?  (Read 2291 times)

0 Members and 1 Guest are viewing this topic.

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1314
  • BismarckWeather.net
    • BismarckWeather.net
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]
<?php
//------------------------------------------------
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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<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 plainsweather.net" />
<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 BismarckWeather.net, 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 BismarckWeather.com</title>
<?php
$doPrintPWN 
false;
include(
"PWN-mesomap.php");
print 
$PWN_CSS?>

</head>
<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>
    <tr align="center">
      <td><img src="../divider.gif" width="737" height="5" /></td>
    </tr>
    <tr align="center">
      <td> <script webstyle3 src="../navbar/navbar.js"></script></td>
    </tr>
    <tr>
      <td bgcolor="#CCCCFF"><b><font face="Arial"><a href="http://www.plainsweather.net" target="_blank">Plains
        Weather Network</a></font></b></td>
    </tr>
    <tr align="left">
      <td><?php print $PWN_MAP; print $PWN_TABLE?></td>
    </tr>
  </table>

<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>
  BismarckWeather.net and TheZastoupils.com rights reserved</FONT></B></p>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1598212-1";
urchinTracker();
</script>
</body>

</html>
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI