Re: Space mistery [message #176950 is a reply to message #176945] |
Thu, 09 February 2012 00:20 |
Jeff North
Messages: 58 Registered: November 2010
Karma:
|
Member |
|
|
On Wed, 08 Feb 2012 18:00:26 +0100, in comp.lang.php John
<john_takethisoff(at)agdp(dot)de>
<jgu9mr$g1r$1(at)speranza(dot)aioe(dot)org> wrote:
> | Hello again,
> |
> | does anybody have a clue of what could be the problem in the following
> | code :
> |
> | // calling sequence
This is really a HTML question.
No DTD so browser will render in quirks mode.
http://en.wikipedia.org/wiki/Quirks_mode
> | <html><body>
<font> deprecated
> | <FONT face="Arial Black" size="3" color="#0000FF">
<center> deprecated
Should be a H1 element
> | <center>
> | ATTENZIONE<br></FONT>
> | </body></html>
end of html document. (Unfortunately browsers do process items after
the </html> element.)
> | <?php
> | include('tabelle/ATTE/ATTE6/ATTE6.php');
> | include('tabelle/ATTE/ATTE7/ATTE7.php');
> | include('tabelle/ATTE/ATTE8/ATTE8.php');
> | ?>
> |
> |
> | ATTE6, ATTE7 + ATTE8 have a similar code, differing only those parts
> | carrying the ID name (ATTEx) i.e. text copied and replaced :
> |
> |
> | // main progam ATTE8.php
> |
> | <?php
> | require('ATTE6init.php'); // initialization of variables
> | $tab_html = '<center> <br> <br><table><tr><td><FONT
> | face="Arial" size="2">';
> | echo $tab_html; // if I comment this line, the title touches the table
> | above <only God knows why>
> |
> | $tab_html .= '<span style="background-color:
> | #FFFF00">'.$titolo.'</span></FONT></td></tr></table>';
> | echo $tab_html;
Why have the above table? Why not a H2 element.
> | $tab_html = '<table border="1"><tr><td>'.$cross.'</td>';
> | //echo $tab_html;
> |
> | for ($j=0; $j < $numcols; $j++) {
> | $tab_html .= '<td align="right" bgcolor="#DDDDFF"><b>'.$coltit[$j] .
> | '</b></td>' ;
> | }
<td align and bgcolor deprecated
> | $tab_html .= '</tr>';
> | echo $tab_html;
> | // End titoli di colonna
No closing table element.
> | the symptons are that if one displays more than one table, one after the
> | other, as specified in the calling sequence, the space between the title
> | and the table is increased by 3 o 4 spaces, while it shouldnt have any
> | additional space ( <br>).
> |
> | The last table however is always displayed correctly, so in the case on
> | one single table, there's no perception of this error.
> |
> | Thanks for any feedback.
> |
> | John.
|
|
|