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
e-rase
Forum Newbie
Posts: 4 Joined: Thu Jul 08, 2004 2:19 am
Post
by e-rase » Tue Jul 20, 2004 10:47 pm
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"> </td>
</tr>
<tr>
<td height="28" align="left" valign="top">
<?php
$arrNav = array('home','quote','coverage','about','contact');
foreach($arrNav as $nav) {
$dispNav .= "<a href="/" . $nav . "/index.php"";
if($navSection == $nav) {
$dispNav .= "><img src="/shared/images/nav_" . $nav . "_marker.gif" alt="" . $nav . "" border="0">";
}
else {
$dispNav .= "onMouseOver="navover('" . $nav . "');return true;" onMouseOut="navout('" . $nav . "');return true;"><img name="" . $nav . "" src="/shared/images/nav_" . $nav . ".gif" alt="" . $nav . "" border="0"";
}
$dispNav .= "</a>";
}
print $dispNav;
?>
</td>
<td width="6" height="28"> </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
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Tue Jul 20, 2004 11:01 pm
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
Post
by e-rase » Tue Jul 20, 2004 11:07 pm
Man I can't believe I missed that!!! Thanx so Much!!!!!
John Cartwright
Site Admin
Posts: 11470 Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:
Post
by John Cartwright » Tue Jul 20, 2004 11:24 pm
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 » Tue Jul 20, 2004 11:34 pm
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.