FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Space mistery
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Space mistery [message #176951 is a reply to message #176950] Thu, 09 February 2012 00:59 Go to previous messageGo to previous message
John is currently offline  John
Messages: 18
Registered: September 2010
Karma:
Junior Member
Am 09.02.2012 01:20, schrieb Jeff North:
> 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>&nbsp;<br>&nbsp;<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.

I wanted to 'mark' the text with yellow underground. I thought <H2> only
change the style but without 'marking'.

I use <table> in this case because it seems the only way to have the
title where I really want it : just above the table.
Any other solution puts unwanted spaces everywhere else but not where I
want it.

I am having difficulty with mixed code html + php, but sometimes that is
the only option available. Unless one uses a template.

Anybody can suggest an easy template to use instead of messing up mith
mixed code html+php ???

>
>> | $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

How come ? I have really a 'table' (matrix of numbers) to display and
THAT is about the ONLY reason left for using <table> and not <div>. Right ?

>
>> | $tab_html .= '</tr>';
>> | echo $tab_html;
>> | // End titoli di colonna
>
> No closing table element.

it comes later. I didnt write the whole code because I thought the error
must be in this piece of code.
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Local vs. hosted connection
Next Topic: session array not available in popup?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 09:19:32 GMT 2024

Total time taken to generate the page: 0.05125 seconds