Author Topic: Strange Alignment / Justification w/ PHP  (Read 1393 times)

0 Members and 1 Guest are viewing this topic.

blackjack52

  • Guest
Strange Alignment / Justification w/ PHP
« on: August 08, 2009, 12:30:18 AM »
I haven't made any changes to my index.php, but page suddenly all dorked up.
My 2 images above the alt ajax script are no longer centered and the alt ajax dash is tabbed way down.

Can someone enlighten? I've cleaned up w/ validator...from 60+ errors to only 9. But those 9 errors were there prior to the dork-up and the pg displayed fine.

Code: [Select]
<div id="main-copy">
   
<?php // insert desired warning box at top of page
  
if ($useTopWarning) {
   @include_once(
"rss-top-warning.php");
  } else {
   print 
"      <div class=\"advisoryBox\">\n";
   
$_REQUEST['inc'] = 'y';
   
$_REQUEST['summary'] = 'Y';
   @include_once(
"rss-advisory.php");
   print 
"      </div>\n";
  }
?>
<div class="column-dark">

<div style="position: absolute; z-index: 100;"><img
 style="width: 300px; height: 233px;" alt=""
 src="http://www.srh.noaa.gov/wwamap/png/hun.png" />
</div>
<div style="position: absolute; z-index: 5000;">
<a href="http://www.knology.net/~blackjack52/wxadvisory.php"><img
 src="http://www.srh.noaa.gov/hun/images/bground.gif" alt=""
 style="border: 0px solid ; width: 300px; height: 233px;" /></a>
</div>

<div style="text-align: right;">
      <script type="text/javascript">
var refreshrate=30; //SECONDS BETWEEN REFRESH
var image="http://www.knology.net/~blackjack52/wwpic.jpg"; //IMAGE NAME
var imgheight=232; //IMAGE HEIGHT
var imgwidth=340; //IMAGE WIDTH
function refresh(){
document.images["pic"].src=image+"?"+new Date();
setTimeout('refresh()', refreshrate*1000);}
document.write('<img src="'+image+'" alt="" name="pic" id="pic" width="'+imgwidth+'" height="'+imgheight+'" style="border: 0px solid #405058;"/>');
if(document.images)window.onload=refresh;
      </script>
</div>

<?php include_once("ajax-dashboard.php"); ?>

<div style="text-align: center;"><a
 href="http://www.knology.net/~blackjack52/wxforecast.php">Full
Forecast</a>
</div>

<div style="text-align: center;">
<img src="image-handler-graphcast.php" alt="NWS Graphicast" width="580" height="500" />
</div>