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, ...Styling menu in DNN 5Styling menu in DNN 5
Previous
 
Next
New Post
8/6/2009 3:26 PM
 

Am I right in saying that this is an example of what 'm talking about..?

http://webcontrols.dotnetnuke.com/samples/menucss.aspx

Jon


Shebang Websites - A product of Mogridge Design
Hey, we're partnered with UntangleMyWeb.com

 
New Post
8/6/2009 4:30 PM
 

Yes it is. Didnt you trust me ;)

 
New Post
8/10/2009 2:31 PM
 

I've done this several times:  http://www.dnnstyle.com/retro/Skins/MainHeader4.aspx and http://www.dnnstyle.com/fashion/Home.aspx.  So, it can definitely be done.  I'd imagine different widths for root items would be easy enough by not setting a width, and applying float: left with a clear: both to render the horizontal menu items vertically without using the vertical menu option (which I believe by default applies a uniform width if remembering correctly).  Then you could set a background image to repeat and set an outside border via css to each item.  Separating the items can be done with a margin setting instead of padding, though when I did that I was not able to separate menu items in the submenus with a margin, only in the root menu.  The submenu I just set a bottom border to simulate a space.  DNN Nav is evolving, slowly but surely, into something that can handle more complex design needs.  Still a ways to go, but progressing.

Anyway, when I did this, I set up a default root menu item style via ".mainMenu .root.mi" with all the width, padding, margins, font settings, etc in that default. And then to override the background, you simply add below that ".mainMenu .root.mi.m0" and just add the custom background settings there.  Although, to be honest, in your case I don't think you'd necessarily need to have separate background settings for each root menu item if, again, you use a horizontal rendering of the menu, don't set the menu item width, and apply a float left with clear both to trick it into rendering vertically by forcing each menu item to a new line via the floats and clears.


JOHN GIESY
DotNetNuke Hosting Expert

DotNetNuke 7 Hosting $70 /year
DNN4Less.com Team DotNetNuke  

New Post
8/10/2009 2:51 PM
 

Actually, with your menu, looking at it again, you'd need to use a different background image for each one, but again, you could still use the floats and clears to force a horizontal menu to render vertically, and then in the ".mainMenu .root.mi.m0" ".mainMenu .root.mi.m1" etc you could apply a different menu background and only have to set the background image in those "m#" classes, leaving all the font settings in the default.  Then, set whitespace to nowrap, and align your background image to the right.  You could then also use maybe 4 images that rotate, just make the image wide enough so that when the menu item text forces the menu item to be wider or narrower, the background image aligned to the right will appear to "stretch" and "contract" with each menu item. 

I'm not sure if the ".txt" class has been implemented yet or not, but once it is, theoretically you could set the ".txt" to display: none and use a background image or icon to replace the menu item text, as long as you do set the menu item widths to accommodate the background image (with the icon you wouldn't need to worry about it).


JOHN GIESY
DotNetNuke Hosting Expert

DotNetNuke 7 Hosting $70 /year
DNN4Less.com Team DotNetNuke  

New Post
8/10/2009 2:59 PM
 

.txt is implemented in DNN version 5

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Styling menu in DNN 5Styling menu in DNN 5


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