Jump to content

Column widths on echo'ed tables; FireFox and IE differences


Jodha

Recommended Posts

Hi, sorry if this is inappropriate to ask here, shoot me down if so ;)

 

I am using "echo" to display a table if which the left column MUST be 200 pixels wide, and no more for proper presentation.

 

In my code I have:

 

echo

"<tr>

<td width ='200' align='left' valign='top'>";

include(.....);

echo

"</td>

<td>";

include(.....);

echo

"</td>

</tr>";

 

(please excuse silly typos - reading from laptop and posting from desktop compys, plus food has just been dished up!

 

In Firefox the left column width is 100% perfect

 

In IE the column width seems to be ignored, and the browser just does what it wants, something its most of the page wide, sometimes just some.

 

Does anybody know why IE behaves inconsistently and is there a trick to make it perform like Firefox?

 

Cheers me mateys :)

 

Link to comment
Share on other sites

I thought so, my apologies there.

 

Haven't had such probs to this degree with column widths when the page is HTML, so just thought there might be a little PHP trick involved there ;)

 

Maybe IE should be taken out Fight Club style, I figure this must be one of the most annoying aspects of webdev - your site looks cool on all browsers but the browser which happens to be shipped with the most used OS.

 

Dam them MicroSoft peeps

 

(sorry if thats you!)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.