Forum Moderators: open

Message Too Old, No Replies

Logo won't line up in IE

         

Sabie

8:52 pm on Feb 24, 2006 (gmt 0)

10+ Year Member



Hi, I'm using nested templates for my site, I have a basic table with rows which holds php icludes and some css and there is a "body" area where people can enter content.
I have a logo (php include) which sits in the second row in the table. The row below it holds a graphic title bar (php include for a .swf. In Firefox the logo and the right edge of the titlebar line up perfectly. In IE it is way off, probably 1/2 inch. The logo include sits in a nested table with two rows. Someone else set this logo up and I have changed this table in various ways (used only one row, got rid of div, moved div etc.) including changing align but nothing happens (in Firefox either). The top row of the table is empty and the row with the logo include also has an anchor in it on the left. I also tried moving the anchor around to get rid of the div tag but nothing happened. Any suggestions? Thanks, Shell

This is the code from the top part my master template
<table width="905" border="0" align="center">
<tr>
<td width="882" height="33" align="right">
<div align="right"></div>
<table width="84" border="0" align="right">
<tr>
<td align="right"><div align="right"></div><?php include("logo.inc.php");?></td>
</tr>
</table>

This is the code from the top part if a nested template w/a title bar include sitting under the logo.

<table width="905" border="0" align="center">
<tr>
<td width="882" height="33" align="right">
<div align="right"></div>
<table width="84" border="0" align="right">
<tr>
<td align="right"><div align="right"></div><?php include("logo.inc.php");?></td>
</tr>
</table>
<div align="left"><a name="top"></a></div></td>
</tr>
<tr>
<td height="34"><!-- InstanceBeginEditable name="Title Bar" -->
<!-- @@(" ")@@ --><?php include ("tbar.inc.php");?>
<!-- InstanceEndEditable --></td>
</tr>

tjhorne

9:53 pm on Feb 24, 2006 (gmt 0)

10+ Year Member



Your tables seem to be confusing, post the exact code your trying to correct.

One thing I would recommend is aligning with CSS like so:

<p style="text-align: right">put image here</p>

Todd H.

Sabie

10:47 pm on Feb 24, 2006 (gmt 0)

10+ Year Member



are you saying put css in my php include? Or around the include in the table? The row that the logo is in that is not lining up in IE is:

<tr>
<td align="right"><div align="right"></div><?php include("logo.inc.php");?></td>
</tr>

There is an anchor sitting in the same row on the left side so that is where the div comes from. I have taken this out and it makes no difference. Thanks.

tedster

11:34 pm on Feb 24, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



1. Did you intend for the logo include to follow after a div?
2. What is the doctype?

Sabie

1:08 am on Mar 2, 2006 (gmt 0)

10+ Year Member



Hi, no, the div is just there because of an anchor which I have sitting in that row on the left. This is a master template so the anchor passes to all parents and children enabling my people to put anchors on their pages(for top) which they could otherwise not do as they would be locked out of those areas. I have taken that out, taken the div out and it makes no difference. My doc type is HTML 4.0 Transitional, loose. But, because of your message I found something so now it is better than before. Thanks, Sabie