corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Dodgy HTML/PHP/Table problem » Post Reply

Post Reply
Who Can Post? All users can post new topics and all users can reply.
Icon:
Formatting Mode:
Normal
Advanced
Help

Insert Bold text Insert Italicized text Insert Underlined text Insert Centered text Insert a Hyperlink Insert Email Hyperlink Insert an Image Insert Code Formatted text Insert Quoted text
Message:
HTML is Off
Smilies are On
BB Code is On
[img] Code is On
Post Options: Disable smileys?
Turn BBCode off?
Receive email notification of new replies?

liamC

posted on 24th Jan 07 at 19:37

Ahhh...yeah, I already had that mate


Steve

posted on 24th Jan 07 at 19:27

add this to the top of the page

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />


AndyKent

posted on 24th Jan 07 at 19:27

Don't know what you know about PHP but it has nothing to do with how the browser displays stuff.

All it does it insert content where your PHP script tells it to .....it then sends the PHP page to the browser - any problems with the display are down to the HTML code not the PHP - if you get a PHP error it makes itself very obvious....


liamC

posted on 24th Jan 07 at 19:26

quote:
Originally posted by Steve
have you defined html content headers at the top of the page?

[Edited on 24-01-2007 by Steve]


Don't think so? :boggle:

I defined the style of the table at the top and it's fine :D


Steve

posted on 24th Jan 07 at 18:55

have you defined html content headers at the top of the page?

[Edited on 24-01-2007 by Steve]


liamC

posted on 24th Jan 07 at 18:30

wah-fucking-hey...that's actually been grinding on me for weeks as to why that wasn't working.

I've had to define it it in the <style> at the top instead of the actual tag. Maybe a PHP thing? Works fine in the normal way in an HTML file.. :boggle:


James

posted on 24th Jan 07 at 18:24

hhmm, works ok in a HTML page, unless you are using a really strict document model.

Try changing bgcolor="#F2F2F2" for this:

style="background-color:F2F2F2"


liamC

posted on 24th Jan 07 at 18:19

Just simple table code with a PHP page mate!

code:
<table width="100%" height="5%" border="0" cellpadding="0" cellspacing="0" bgcolor="#F2F2F2">
<tr>
<td width="43%">&nbsp;</td>
<td width="57%" valign="top" bgcolor="#F2F2F2">&nbsp;</td>
</tr>
</table>


James

posted on 24th Jan 07 at 18:18

Post the code that doesnt work.


liamC

posted on 24th Jan 07 at 18:15

For some reason, if I create any tables within a PHP page, applying a background colour or image background to the table simply will not work.

Is there alternative code to enable this? It is doing my head in!! All I want is a grey bastard background!! :boggle: