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, ...Main Menu CSSMain Menu CSS
Previous
 
Next
New Post
2/23/2006 4:39 PM
 
I would recommend that you transfer all of your css settings directly into your skin.css file, this way you can transfer your skin package to any DNN installation and can easily refer back to your css code at a later date in the future if you wish to make changes.

- This maybe the cause of your problem as the css styles are read from:

default.css (first)
portal.css (the one you are editing) (second) and
skin.css (third)
container.css (fourth)
(Check the portal/default folder)

If there happens to be any menu classes within your skin.css file, they will overide all of the settings in the default and portal css files.

So I would recommend you edit the skin.css file.

Lee Sykes - DNN Creative Magazine - 600+ Video Tutorials, Articles, Interviews - July Issue 58 out now!
DNN Creative Magazine for DotNetNuke

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
 
New Post
2/26/2006 10:15 AM
 
As a follow up, I made a mistake in the order that the css files are read. - You can read the details on page14 of the skinning documentation.


The cascading order of the stylesheets with each item overriding the previous item is:

Modules - styles for custom modules defined in PortalModuleControl.StyleSheet
Default - default host level styles - default.css
Skin - skin styles - skin.css or skinfilename.css
Container - container styles - container.css or containerfilename.css
Portal - custom styles defined by Portal Administrator - portal.css

thanks,

Lee Sykes - DNN Creative Magazine - 600+ Video Tutorials, Articles, Interviews - July Issue 58 out now!
DNN Creative Magazine for DotNetNuke

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile
 
New Post
2/26/2006 2:57 PM
 

An easy way to see the order in which CSS files are used it to look at the source of the rendered HTML page.

When viewing the source, search for ".css" and the order that you find the CSS files in is the order that they are applied in the DOM.

My free CSS Editor also makes this all less painful and more performant by combining all the CSS files into one easy to mange file.


DotNetNuke Modules from Snapsis.com
 
New Post
2/28/2006 12:24 PM
 

First of all let me thank everyone for the great replies, they've been very helpful.

Based on the advise and my own findings, I've removed all styles relating to the menu and moved them into my skin.css file and left all the other .css files with empty definitions. This makes it very easy to track down odd style rendering. For the most part, through trial and error, I've been able to determine how the menu styles effect different parts of the menu. But I'm still confused on a few things.

Here are my assumptions/findings so far:

.MainMenu_MenuContainer: Controls styling of the entire container, not the individual menu items.

.MainMenu_MenuBar: Don't know what this does. When I set a height property, it does effect the spacing between main menu items, but I can't set borders or background colors.

.MainMenu_MenuItem: Controls styling of the sub-menu items. This is where I'm confused because I would think that this style should control the main menu items (i.e. Home, Forums, Admin, Host), not sub menu items.

.MainMenu_MenuIcon: Controls styling of the sub-menu icon

.MainMenu_SubMenu: Like the MenuContainer, this style controls the sub menu "container".

.MainMenu_MenuBreak: Don't know what this does. I've set odd styles. E.G. 10px borders, fuschia backgrounds and I see no effect in the menu.

.MainMenu_MenuItemSel: Controls the styling of selected menu items. E.G. changing the background of menu items during mouse-over, etc.

.MainMenu_MenuArrow: Don't know what this does.

.MainMenu_RootMenuArrow: Don't know what this does.

For the most part, my menu is set how I want it, except one thing. I want to put a white 1px solid border around each main menu item. That is, a border around Home and a border around Forums and a border around Admin, etc. Like so:

                                               Home  

                                             Forums  

                                             Admin »

                                                Host »

 
New Post
2/28/2006 2:55 PM
 

They do work - you need to assign them to the skin/xml file to work. they will not work if just applied to the css file.

I have a couple of skins that have this element applied in it. We're doing some site updates today so they should be all ready again. It's the DesignAway skin in particular.  It has the classes in the ascx file and the css to match. 

Nina Meiers


Nina Meiers My Little Website
If it's on DNN, I fix, build, deploy, support,skin, host, design, consult, implement, integrate and done since 2003.
Who am I? Just a city chic, having a crack at organic berry farming.. and creating awesome websites.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Main Menu CSSMain Menu CSS


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