Ryan,

Try putting the IE hack in a conditional comment:

<!--[if LTE IE 6]>
<style>
#ul-nav { margin-top:-40px;}
</style>
<![endif]-->

Place this just prioir to </head>. The validator ignores anything inside the
comments. You will need the code on every page or set it up as an include.

For more on conditional comments go to microsoft.com and search for
'conditional comment'.

Jim



On 2/26/06, Ryan Morris <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I am trying to avoid using IE hacks as much as possible - especially ones
> that result in 'invalid' css.
>
> I have this menu/submenu
> http://menutest.mnos.org/test.php
>
> This works fine in IE & Firefox - however, it's working ok in IE because
> it
> has a position hack applied to it in the css (hp_nav.css)
>
> #ul-nav{
> *margin-top:-40px;
> }
>
> If i remove this, see example
> http://menutest.mnos.org/test_nogoodinie.php
>
> Is there any way to position this Menu (#ul-nav) correctly without relying
> on an invalidating position hack?
>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to