We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7455
    • 2,204 Posts
    try using this:

    .menu ul li.active a {color:#fff; background:#CC3333;}
    .menu ul li.here a{color:#fff; background:#CC3333;}

    it wil use active if you are on the document and it wile use here when jou are on a document below/insite
      follow me on twitter: @dimmy01
      • 6723
      • 93 Posts
      Excellent - i thought i was going mad yesterday. It works on Friefox, but not for IE though (i’ve only applied it to the utility section - http://emc2.site4test.co.uk/index.php?q=accessibility.html) . I’ve added it to the IE style sheet;

      /* CSS Document */
      table {border-collapse:collapse; border:0; margin:0; padding:0;}

      .menu ul li a.hide, .menu ul li a:visited.hide {display:none;}
      .menu ul li a:hover ul li a.hide {display:none;}

      .menu ul li.active a {color:#fff; background:#CC3333;}
      .menu ul li.here a{color:#fff; background:#CC3333;}
      .menu ul li a:hover {color:#fff; background:#CC3333;}
      .menu ul li a:hover ul {display:block; position:absolute; top:0; left:105px; width:105px;}
      .menu ul li a:hover ul li a.sub {background:#dfc184; color:#000;}
      .menu ul li a:hover ul li a {display:block; background:#b3ab79; color:#fff; width:150px;}
      .menu ul li a:hover ul li a ul {visibility:hidden;}
      .menu ul li a:hover ul li a:hover {background:#dfc184; color:#000;}
      .menu ul li a:hover ul li a:hover ul {visibility:visible; position:absolute; left:151px; top:0; color:#000;}
      .menu ul li a:hover ul li a:hover ul li a {display:block; width:200px; background:#dfc184; color:#000;}
      .menu ul li a:hover ul li a:hover ul li a:hover {background:#bd8d5e; color:#fff;}

      .menu active {color:#fff; background:#CC3333;}
      .menu here {color:#fff; background:#CC3333;}

      Quote from: Dimmy at Apr 18, 2007, 04:40 PM

      try using this:

      .menu ul li.active a {color:#fff; background:#CC3333;}
      .menu ul li.here a{color:#fff; background:#CC3333;}

      it wil use active if you are on the document and it wile use here when jou are on a document below/insite
        • 6723
        • 93 Posts
        Ummm the solid background colour is still not working with IE - fine with Firefox - and for the life of me I can’t figure out where in the CSS I’ve gone wrong.

        At the moment I’m testing on the Utility section;

        http://emc2.site4test.co.uk/index.php?q=accessibility.html for the menu on the left

        The CSS

        Overall - http://emc2.site4test.co.uk/css/emc_our.css

        Then for the menu
        http://emc2.site4test.co.uk/css/flyout_footer.css
        http://emc2.site4test.co.uk/css/flyout_footerie.css

        As previous post I’ve added
        .menu ul li.active a {color:#fff; background:#CC3333;}
        .menu ul li.here a{color:#fff; background:#CC3333;}

        to both flyout css and it only works in Firefox

        Help !
          • 19341
          • 4 Posts
          Maybe you are currently working on it, thus the reason it is not working at all in ie7?