DotNetNuke Skins and Resources by ThinkofDesign

Forums

Subject: Help with House Menu configuration
Prev Next
You are not authorized to post a reply.

Author Messages
chocolate User is Offline
New Member
New Member
Posts: 6


05/20/2007 06:28 AM  

Hi, I notice that your site is using the House Menu module and you've managed to show the tab active status. Can you please tell me how to do that? I'm struggling desperately since my knowledge of CSS skinning is awful.

Here's the code in my skin's skin.ascx :


<div id="HouseMenuH">
<dnn:housemenu mode="S" orientation="H" isrecursive="false" showadmin="true" scope="-1" id="dnnHOUSEMENU" runat="server"></dnn:housemenu>
</div>

 

And here's the House Menu configuration in skin.css :

#HouseMenuH ul { padding: 3px 0; padding-top: 6px; margin: 0 1 1 0; border-bottom: 1px solid #778; background-image: url('menubkg.gif'); background-repeat: repeat-x } #HouseMenuH li { list-style: none; margin: 0; display: inline; } #HouseMenuH li a { padding: 3px 0.5em; margin-left: 3px; border: 1px solid #778; border-bottom: none; background: #DEE; text-decoration: none; } #HouseMenuH li a:link { color: #667; } #HouseMenuH li a:visited { color: #667; } #HouseMenuH li a:hover { background: white; border-bottom: 1px solid white; } #houseMenuH li a:active { background: white; border-bottom: 1px solid white; }

Thankyou very much,

Duc

Vasilis User is Offline
Yellow Member
Yellow Member
Posts: 315


05/21/2007 06:41 AM  
Hi Duc,

Check the produced source code of the menu on your site.

Your active menu item must be something like


<li id="houseMenuVstaticCurrentItem">
    <a id="houseMenuVstaticCurrentLink" href="http://www.thinkofdesign.com/Forums/tabid/55/Default.aspx" tabindex="1">Forums</a>
</li>


As you can see, there is a houseMenuVstaticCurrentItem ID on the active list item and a houseMenuVstaticCurrentLink ID on the active link.

So in your CSS you can add

#houseMenuH li#houseMenuVstaticCurrentItem{your styles here}
#houseMenuH a#houseMenuVstaticCurrentLink{your styles here}

Cheers,

Vasilis
chocolate User is Offline
New Member
New Member
Posts: 6


05/21/2007 09:46 AM  

Thanks Vasilis, it worked great!

You are not authorized to post a reply.
Forums > DotNetNuke > Skinning in general > Help with House Menu configuration



ActiveForums 3.7