Jump to content

AH TABLE not displaying properly in some browsers...


shane85

Recommended Posts

what is wrong with my code??? it works perfect on my computer but ive tried on a few others and it doesnt work. im giving links to 2 images - 1 on how it displays on my screen, and 2, how it displays incorrectly on others. In the 2nd image the bottom half of the bottom image is cut off because I took a screen shot and it couldnt keep the whole thing in the screen cause of the large white space in the middle that shouldnt be there. ah.

 

the code is as follows

 

<center>
<table width="500" border="0" cellpadding="0" cellspacing="0">
<tr>
	<td colspan="3"><img src="gfx/tv_ticker_top.jpg" width="500" height="47"></td>
</tr>
<tr>
	<td rowspan="2"><img src="gfx/tv_ticker_left.jpg" width="48" height="231"></td>
	<td><img src="<?php echo $_SESSION['SESS_COMPANY_LOGO']; ?>" width="406" height="216"></td>
	<td rowspan="2"><img src="gfx/tv_ticker_right.jpg" width="46" height="231"></td>
</tr>
<tr>
	<td height="15"><FONT 
color="#ffffff" size="2">

<MARQUEE bgcolor="#505050" 
direction="left" loop="20" scrollamount="4"><?php echo $_SESSION['SESS_TICKER'];?></MARQUEE>

</FONT></td>
</tr>
<tr>
	<td colspan="3"><img src="gfx/tv_ticker_bottom.jpg" width="500" height="119"></td>
</tr>
</table>
</center>

 

is it because of the php in the code? how can I fix this???

 

the link to the image on how it SHOULD be displayed is here

 

www.fireshock.ca/test/image1.jpg

 

the link to the image on how it currently displays WRONG is here

 

www.fireshock.ca/test/wrong.jpg

 

any help is appreciated...this problem is driving me nuts and I dont know how to fix it.

 

Thanks

Link to comment
Share on other sites

I don't know the solution but it isn't the html I think. Checked all your widths and heigts and it all fits..

 

put a border <table border='1'> so you can see in which cells the problem might be.

Perhaps give your marquee a height and width?

 

On another note, always put alt' in your img tag, and close img tags; <img src='src' alt='alt' />

It's not necessary, but it's advised.

Link to comment
Share on other sites

You're using a lot of depreciated tags, like <center> and <font>. Why? That may be your problem. You could apply center to the table itself, and that would center the table. As far as the <font> tag, just use CSS in the <td> tag.

 

Also, arbitter is right. Apply several borders around things like the table and your marquee. That's a great way to troubleshoot issues like this.

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.