Looks Different on a PC!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
e-rase
Forum Newbie
Posts: 4
Joined: Thu Jul 08, 2004 2:19 am

Looks Different on a PC!!

Post by e-rase »

Would there be a reason the following code adds extra space at the bottom of my navigation on a PC but not a MAC?

Code: Select all

<table width="720" height="81" align="left" border="0" cellpadding="0" cellspacing="0">
	<tr> 
		<td width="214" height="81" rowspan="2" align="left" valign="top"><a href="/home"><img src="/shared/images/img_logo.jpg" width="214" height="81" border="0"></a></td>
		<td height="53" colspan="2" align="left" valign="top">&nbsp;</td>
	</tr>
	<tr> 
		<td height="28" align="left" valign="top">
		<?php
		$arrNav = array('home','quote','coverage','about','contact');
		foreach($arrNav as $nav) &#123;
			$dispNav .= "<a href="/" . $nav . "/index.php"";
			if($navSection == $nav) &#123;
				$dispNav .= "><img src="/shared/images/nav_" . $nav . "_marker.gif" alt="" . $nav . "" border="0">";
				&#125;
			else &#123;
				$dispNav .= "onMouseOver="navover('" . $nav . "');return true;" onMouseOut="navout('" . $nav . "');return true;"><img name="" . $nav . "" src="/shared/images/nav_" . $nav . ".gif" alt="" . $nav . "" border="0"";
				&#125;
			$dispNav .= "</a>";
			&#125;			
		print $dispNav;
		?>
		</td>
		<td width="6" height="28">&nbsp;</td>
	</tr>
</table>
I'm including this into the main page.
Could some please help me out with this problem! Everything looks great on IE on my MAC but puts a space at the bottom of my navigation on IE on my PC.
Take a look:
http://www.selecthealthinsurance.com/home

Please Help!

e-rase :?:
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

It's likely the extra space created by that indented </td> after the print.
e-rase
Forum Newbie
Posts: 4
Joined: Thu Jul 08, 2004 2:19 am

THANX!!!

Post by e-rase »

Man I can't believe I missed that!!! Thanx so Much!!!!!
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

btw i dont think it matters on the comp but the browser
lolpix
Forum Commoner
Posts: 41
Joined: Sat Jul 17, 2004 2:20 am

Post by lolpix »

Phenom wrote:btw i dont think it matters on the comp but the browser
IE for Mac displays a bit different than for Windows. Some of the more notable differences include forms, header tags, and horizontal rules.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

thanks for clearing that up :)
Post Reply