By Paul_83uk on
Please help My navigation is getting thrown out, on random pages the positioning is getting messed up.
when looking at the source code everything looks fine:
<li class="solprod">
<a href="/en/solutions-and-products-overview">
<h4>Solutions & Products | </h4>
</a>
but when using Firebug it shows this:
<li class="solprod">
<a href="/solutions-and-products-overview"/>
<h4>
<a _moz-rs-heading="" href="/solutions-and-products-overview">Solutions & Products | </a>
</h4>
<a href="/solutions-and-products-overview"> </a>
this is the actual code behind it all if that helps
<li class="solprod"><a href="/en/solutions-and-products-overview"><h4>Solutions & Products | </h4>
<!--[if IE 7]><!-->
</a>
<!--<![endif]-->
<table><tr><td>
<ul>
<li><strong>Business Solutions</strong></li>
.......... list for navigation ........
<li><a href="/en/report2web/">Report2Web</a></li>
</ul>
</td></tr></table>
<!--[if lte IE 6]>
</a>
<![endif]-->
</li>
I can't work out a pattern but it happens on certian PC's more than others? (all Windows + firefox 2)
Comments
This looks like it's nothing
This looks like it's nothing to do with Drupal.
Fix your HTML (free online validator at http://validator.w3.org/), remove those unused "if IE" switches and disable Firebug, and see if this goes away. Firebug is a complex debugging tool: you shouldn't be surprised if it does weird things to your HTML, but if the problem isn't in the actual source then it's not strictly speaking Drupal's fault. It might of course be a faulty downloaded theme that's producing this bad HTML, in which case I'd complain to the theme maintainer.
(You also shouldn't be using tables for layout, incidentally, if that's what that <table> element is doing: use <div>s and appropriate CSS.)
--
J-P Stacey, software gardener, Magnetic Phield
Thanks
Thanks for the help it was the
<h4>tags being within the<a>tags i had validated the code earlier when i took over this project but when I messed up i backed up back to the previous guys code. (and forgot to change it again)Thanks for the link with info on the conditionals