We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2623
    • 34 Posts
    I’m stuck with one of those simple, or plain stupid, things. Monday syndrome, I guess

    So I can get my WF menu to show the ’active’....


    This is my style (it’s just a stylesheet, no placeholders, chunks etc)

    .navbox ul li .active  {
    	color: #FF0000;
    	text-decoration: none;
    	background:  url(../images/naranja.png) no-repeat;
    }


    The menu behaviour is as so:

    .navbox ul li a:link, .navbox a:visited {
    	display:block;
    	color: #FFF;
    	text-decoration: none;
    	padding-left: 28px;
    	padding-bottom:20px;
     background: url(../images/bullit.png) no-repeat;
    }
    
    .navbox ul li a:hover {
    	color: #FFF;
    	text-decoration: none;
    	background:  url(../images/laranja.png) no-repeat;
    } 


    HTML
    <div class="navbox">
    <ul><li class="active"><a href="/mod/index.php?id=2" title="Institutional" >Institutional</a></li>
    <li><a href="/mod/index.php?id=3" title="Do-Bars" >Do-Bars</a></li>
    <li><a href="/mod/index.php?id=4" title="Products" >Products</a></li>
    <li><a href="/mod/index.php?id=5" title="Uses" >Uses</a></li>
    <li class="last"><a href="/mod/index.php?id=6" title="Benefits" >Benefits</a></li>
    </ul>

      • 2623
      • 34 Posts
      Oh boy, am I feeling stuuuuuuuuuuupid... embarrassed embarrassed embarrassed embarrassed

      It’s the CSS, of course... (which I really know nothing about )

      So if anyone ever types the element’s class with a space between them you’re bound to embarrass yourself in great way.

      .navbox ul li.active

      NOT
      .navbox ul li .active