Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Vertical Menu Formatting Problems?Vertical Menu Formatting Problems?
Previous
 
Next
New Post
1/12/2006 10:52 AM
 
I am trying to create a vertical menu that does a few things.  Here is what I am wanting to accomplish but  am having problems with:
1. No breadcrumb arrow
2. No or smaller icon area
I can get the following to work for the submenu but not the root menu.
3. Item highlight when mouseover  (everything works except the font doesn't change color)
4. Items justified to the right (the sub menu works??)

Here is the code I put in my .ascx file
<td><dnn:MENU id="dnnMENU" runat="server"
                   display="vertical"
                   usebreadcrumbarrow="false"
                   iconwidth="0" /></td>

I am also getting a padding area to the right of the sub menu with a small white line that dissapears if you put you mouse over it.  Any ideas how to get rid of the padding and/or line?

see it here

Thanks for your help!
 
New Post
1/12/2006 4:23 PM
 

Ok,  I fixed most of the problems by looking at other .css styles around the web.  Now my question  is, what are all of the class items that can be modified?  I have noticed several different ways to change things and would love a list of all of the different class options for the menu's. 

Some are not in the documentation like .rootmenuitem TD or .submenuitem TD.  It seems that depending on what template you look  at, people style it a little different.  Does anyone have a comprehensive list?  Thanks!

Oh, the one thing I haven't been able to do is change the color of the current tab to something different.  Any ideas on which class controls this. 

 
New Post
1/15/2006 9:53 AM
 

The skinning document (see the download section on this site) has a list of all the attributes you can assign a class to. I also tells how the way the menu has been built in terms of tables and table cells.

Some attributes have a default class assigment (e.g. MainMenu_MenuItem), some do not.

Whether you need to use ".rootmenuitem" or ".rootmenuitem TD" depends on what you want to achieve. But my guess is that (some) people who are occasional skinners are wading their way through the many ways that lead to Rome. Most will stop analyzing when they found a working solution.

Using ".rootmenuitem TD" instead of ".rootmenuitem" causes a higher specificity in the CSS cascade. So if you have competing styles in the various .css files (default, skin, portal), it wins. Which may exactly be what someone wants.

I usually define the attributes I need myself, e.g.

<dnn:MENU runat="server" id="dnnMENU" display="horizontal" rootonly="false" separator="|" separatorcssclass="user" menucontainercssclass="CW0menucontainer" menubarcssclass="CW0menubar" menuitemcssclass="CW0menuitem" menuitemselcssclass="CW0menuitemsel" rootmenuitemcssclass="CW0rootmenuitem" rootmenuitemactivecssclass="CW0rootmenuitemactive" rootmenuitemselectedcssclass="CW0rootmenuitemsel" rootmenuitembreadcrumbcssclass="CW0rootmenuitembreadcrumb" submenucssclass="CW0submenu" submenuitemselectedcssclass="CW0submenuitemsel" submenuitemactivecssclass="CW0submenuitemactive" submenuitembreadcrumbcssclass="CW0submenuitembreadcrumb" />

In this way I know default styles will not interfere. Default classes I don't need, I give the setting: { display: none; }

Now the order in which you define the styles in the css also plays an important role, so I first define the CW0menuitem class. This class gets applied on the submenu items. Then I define the CW0rootmenuitem class, it defines the settings for the root menu (and overides the CW0menuitem).

Usually I don't need to use, things like: CW0menuitem TD.

Your current Item class (I think you mean: CW0rootmenuitemactive and/or CW0rootmenuitembreadcrumb) need be defined below the CW0rootmenuitem for them to have an effect.

Peter


Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
New Post
1/15/2006 4:51 PM
 
Thanks a bunch Peter.  That really clears things up and seems to be the missing piece to my puzzle..

John
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Vertical Menu Formatting Problems?Vertical Menu Formatting Problems?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out