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 #176952 is a reply to message #176951] Thu, 09 February 2012 02:16 Go to previous messageGo to previous message
Jeff North is currently offline  Jeff North
Messages: 58
Registered: November 2010
Karma:
Member
On Thu, 09 Feb 2012 01:59:50 +0100, in comp.lang.php John
<john_takethisoff(at)agdp(dot)de>
<jgv5pq$mpr$1(at)speranza(dot)aioe(dot)org> wrote:

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

[snip]

You will continue having problems until you define the DTD.

> | > 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'.

You use styles to change that, as you did with your code.

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

Use the table caption element i.e.
<table>
<caption style="background-color:#FFFF00;">your caption goes
here</caption>
<tr><td>.....

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

No need for templates it is just the markup you are using.

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

The W3C specification deprecated these attributes in HTML 4. While the
browser still 'honor' them you shouldn't.

The styling should be placed within a separate stylesheet, or within
the <head></head> of the current page.

It *does* make it a lot easier to change the design later on, if
needed.

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

This is not php related so, may I suggest, that you subscribe to a
HTML newsgroup
alt.infosystem.www.authoring.html
alt.html
[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: Tue Nov 26 23:11:52 GMT 2024

Total time taken to generate the page: 0.04052 seconds