I've trying to figure out why the Forecast Discussion is overrunning the table size I've asked it to use.
I have (I think) it set to max out in a 600px wide table. But sometimes it filled almost the entire screen width.
A fix for that?
Here's the code:
<table border="1" cellspacing="0" cellpadding="0" style="width:600px; margin: 0px auto 0px auto;">
<tr>
<td style="color: #000000; background-color: #FFFF00; text-align: center"><font color="black" font-size= "16px"><strong>CENTRAL NEW YORK FORECAST DISCUSSION SYNOPSIS</strong></font>
<?php include ("forecast-discussion-synopsis.php"); ?>
</td>
</tr>
</table>
Thanks.
The block is to wide when there is a lot of text / or very long lines.
The script which generates and displays the text-block is
forecast-discussion-synopsis.phpThese are the lines which display the block
print "<pre>\n";
print htmlspecialchars(strip_tags($discussion));
print "</pre>\n"; $niceFileName = preg_replace('!&!is','&',$fileName);
You should remove the < pre > < / pre > parts so that it looks like these lines
print htmlspecialchars(strip_tags($discussion));
$niceFileName = preg_replace('!&!is','&',$fileName);
Now the long text lines will wrap and not extend outside the box.
Wim