>On Sat, 05 Feb 2005 10:55:20 +0100, Barbara de Zoete <b_********@hotmail.com>
wrote:
On Fri, 04 Feb 2005 16:26:21 -0800, Tyrone Slothrop <ts@paranoids.com> wrote:
| Home | Contact | Faq's | Contact Us | Sign Up |
Meanwhile I've put up a live example at
<http://home.wanadoo.nl/b.de.zoete/_test/voorbeeld_horizontaal-menu.html>. Could
be of use to you.
Thank you for your effort - I really sppreciate it. However, it does
not address the width issue or, perhaps, I am blind to something very
basic here. (Wouldn't be the first time. ;-) )
This code works. However, the entire cell is not clickable in IE, but
works 100% in Firefox.
From CSS file (not optimized yet, so a bit sloppy):
..mo {
background-color: #566166;
border-left: 1px #FFFFFF solid;
color: #FFFFFF;
display: block;
font-family: Arial,Helvetica,sans-serif;
font-size: 11px;
font-weight: bold;
line-height: 16px;
text-align: center;
text-decoration: none;
}
..mo a:link, .mo a:visited {
border-left: 1px #FFFFFF solid;
color: #FFFFFF;
display: block;
font-weight: bold;
line-height 16px; font-size: 11px;
text-decoration: none;
}
..mo a:hover {
color: #566166;
display: block;
line-height 16px; background-color: #FFFFFF;
}
..mo0, .mo0 a:hover, .mo0 a:link, .mo0 a:visited {
color: #566166;
font-size: 11px;
font-weight: bold;
line-height 16px; background-color: #FFFFFF;
text-align: center;
text-decoration: none;
}
Here is the navigation bar:
<table cellpadding="0" cellspacing="0" width="700" height="16"
border="0" class="mo">
<tr>
<td<?php if ($thispage == 'idx') { ?> class="mo0"<?php } ?>
onclick="ex=0;" width="71" height="16"><a
href="idx.shtml">Home</a></td>
<td<?php if ($thispage == 'application') { ?> class="mo0"<?php }
?> onclick="ex=0;" width="101" height="16"><a
href="application.shtml">Apply Now</a></td>
<td<?php if ($thispage == 'testimonials') { ?> class="mo0"<?php }
?> onclick="ex=0;" width="115" height="16"><a
href="testimonials.shtml">Testimonials</a></td>
<td<?php if ($thispage == 'q_and_a') { ?> class="mo0"<?php } ?>
onclick="ex=0;" width="67" height="16"><a
href="q_and_a.shtml">Q&A</a></td>
<td<?php if ($thispage == 'compare') { ?> class="mo0"<?php } ?>
onclick="ex=0;" width="143" height="16"><a href="compare.shtml">Price
Comparison</a></td>
<td<?php if ($thispage == 'affiliates') { ?> class="mo0"<?php }
?> onclick="ex=0;" width="95" height="16"><a
href="affiliates.shtml">Affiliates</a></td>
<td<?php if ($thispage == 'contact') { ?> class="mo0"<?php } ?>
onclick="ex=0;" width="106" height="16"><a
href="contact.shtml">Contact Us</a></td>
<td width="1" height="16" bgcolor="#ffffff" style="font-size:
1px;"> </td>
</tr>
</table>
Excuse the mess - you can ignore the PHP code which determines the
"lit" state and the onClick.
Can you see why the entire cell is not clickable in IE and why it is
in Firefox? Is there a simpler way to accomplish this precise
formating of button widths without tables, or writing a bunch more
styles (which would not really reduce the complexity that much)?