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, ...Menu QuestionMenu Question
Previous
 
Next
New Post
11/12/2007 2:08 AM
 

Hi there

I am pretty new to DNN so please go easy on me :)
I was wondering if there is any way to make a horizoltal menu where it displays 2 rows instead of 1.

I need this because I am working on a site where a vertical menu wont work and a regular horizontal will take to much space across the screen, but if I can break it into two rows it will solve my problems (also im not interested in haveing the regular sub dropdown) I want all points displayed as mainsites which gets to be quite a few points and again leads back to why I ask if I can do this menu in two rows,

I hope some of you can be of help with clearing this up for me :)

Regards Nakia

 
New Post
11/12/2007 3:04 AM
 

You can do that in the dnn:NAV menu by making the top level menu items (which are spans) display as a block element and then give them a width and let them float (left or right). Specify the size of the containing block so they will end up in two rows.

Peter


Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
New Post
11/12/2007 9:18 AM
 

peter schotman wrote

You can do that in the dnn:NAV menu by making the top level menu items (which are spans) display as a block element and then give them a width and let them float (left or right). Specify the size of the containing block so they will end up in two rows.

Peter

Hi again,

SInce I am a webdesigner whom has mainly worked with pure old fashion html sites and started DNN about 2 weeks ago im still pretty new with css too.
ive made some standart solpartmenus but most out from some base code, and a housemenu.
anyone willing to give some example css code for this ? or know where I can find the info I need to get this done :)

 
New Post
11/12/2007 9:48 AM
 

If you use a regular unordered list menu (like Housemenu) and make it horizontal, it will show a double row automatically if you limit the menu's conainer width.

I'l give an axample with Divs for LIs it's the same, and I use inline styles because that's all I can do in the editor
 

Example floating width not limited:

example
example
example
example
example
example
example
example
example
 

 

 


Code:
<div style="padding: 3px; float: left; background-color: rgb(221, 221, 221);">
<div style="margin: 1px; padding: 3px; background-color: rgb(255, 136, 0); width: 100px; float: left;">example</div>
<div style="margin: 1px; padding: 3px; background-color: rgb(255, 136, 0); width: 100px; float: left;">example</div>
<div style="margin: 1px; padding: 3px; background-color: rgb(255, 136, 0); width: 100px; float: left;">example</div>
<div style="margin: 1px; padding: 3px; background-color: rgb(255, 136, 0); width: 100px; float: left;">example</div>
<div style="margin: 1px; padding: 3px; background-color: rgb(255, 136, 0); width: 100px; float: left;">example</div>
<div style="margin: 1px; padding: 3px; background-color: rgb(255, 136, 0); width: 100px; float: left;">example</div>
<div style="margin: 1px; padding: 3px; background-color: rgb(255, 136, 0); width: 100px; float: left;">example</div>
<div style="margin: 1px; padding: 3px; background-color: rgb(255, 136, 0); width: 100px; float: left;">example</div>
<div style="margin: 1px; padding: 3px; background-color: rgb(255, 136, 0); width: 100px; float: left;">example</div>
<div style="clear: both; height: 0px;">&nbsp;</div>
</div>

 

Example fixed width for container:

example
example
example
example
example
example
example
example
example
 






Code:
<p>Example width fixed width for container:</p>
<div style="padding: 3px; float: left; background-color: rgb(221, 221, 221); width: 400px;">
<div style="margin: 1px; padding: 3px; background-color: rgb(255, 136, 0); width: 100px; float: left;">example</div>
<div style="margin: 1px; padding: 3px; background-color: rgb(255, 136, 0); width: 100px; float: left;">example</div>
<div style="margin: 1px; padding: 3px; background-color: rgb(255, 136, 0); width: 100px; float: left;">example</div>
<div style="margin: 1px; padding: 3px; background-color: rgb(255, 136, 0); width: 100px; float: left;">example</div>
<div style="margin: 1px; padding: 3px; background-color: rgb(255, 136, 0); width: 100px; float: left;">example</div>
<div style="margin: 1px; padding: 3px; background-color: rgb(255, 136, 0); width: 100px; float: left;">example</div>
<div style="margin: 1px; padding: 3px; background-color: rgb(255, 136, 0); width: 100px; float: left;">example</div>
<div style="margin: 1px; padding: 3px; background-color: rgb(255, 136, 0); width: 100px; float: left;">example</div>
<div style="margin: 1px; padding: 3px; background-color: rgb(255, 136, 0); width: 100px; float: left;">example</div>
<div style="clear: both; height: 0px;">&nbsp;</div>
</div>

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Menu QuestionMenu Question


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