HomeHomeUsing DotNetNuk...Using DotNetNuk...Skins, Themes, ...Skins, Themes, ...Menu QuestionMenu Question
Previous
 
Next
New Post
11/11/2007 11:08 PM
 

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 12: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 6: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 6: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>


Web applications, DNN websites, modules, skins and support
 
Previous
 
Next
HomeHomeUsing DotNetNuk...Using DotNetNuk...Skins, Themes, ...Skins, Themes, ...Menu QuestionMenu Question


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Try An Online Demo
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft .NET. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates Snowcovered.com where users purchase third party apps for the platform.