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, ...DNN4.02: Problems with .MainMenu_MenuItemDNN4.02: Problems with .MainMenu_MenuItem
Previous
 
Next
New Post
2/6/2006 4:29 AM
 
I have huge problems setting the font family and font size. I have tried just about everything with .MainMenu_MenuContainer, .MainMenu_MenuItem and .MainMenu_MenuItemSel - I can set the backgrounds and so on, but font-family, font-size and font-weight and color just don't work. Eg:

.MainMenu_MenuItem
{
    cursor: pointer;
    cursor: hand;
    color: #ffffff;
    font-family: Tahoma, Arial, Helvetica;
    font-size: 4px;
    font-style: normal;
}

This gives no results at all.
(No, I don't want to have 4px font, I just wanted to see if anything happens)

Now the menu in rendered html has this section:
FontStyle="font-family: Tahoma,Arial,Helvetica; font-size: 9pt; font-weight: bold; font-style: normal; text-decoration: "

Which I imagine overrides everything I try to do it in .css (what's the point of css again? :) ). Is there a way to disable this within the skin itself, without hacking the portal code? My main menu entry is:
<dnn:MENU runat="server" id="dnnMENU" />
 
New Post
2/6/2006 7:17 AM
 
.MainMenu_MenuItem,.submenuitembreadcrumb, .submenuitemselected{....

Should give you control otherwise it is picking it up from D:\DotNetNukeFolder\DNN\Portals\_default\default.css

You can override any of the classes in your skin.css in your skin folder

Salar
 
New Post
2/6/2006 8:48 AM
 
Ok, I've found where my problem is. After doing this:

<dnn:MENU runat="server" id="dnnMENU" FontBold="false" FontSize="1" SeparateCss="true" />

The css seems to be working. Sorry for wasting your time.

An update. This is what was causing it to go wrong:
body, td, th
{
 font-family: georgia, "times new roman", serif;
 font-size: 12px;
 color: black;
}

This piece of css seems to be taking precedence. I'm guessing that the javascript renders the menu as tables. A nasty one to find this one.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DNN4.02: Problems with .MainMenu_MenuItemDNN4.02: Problems with .MainMenu_MenuItem


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