HomeHomeUsing DotNetNuk...Using DotNetNuk...Skins, Themes, ...Skins, Themes, ...Center Align TopMenuCenter Align TopMenu
Previous
 
Next
New Post
2/12/2006 5:29 PM
 

I created a skin, and am attempting to center align the top menu ...I've tried center aligning the table cell its in and also applying text-align:center to all of the Menu properties, however this doesn't appear to be centering it?

 

What am I missing,

 

Thank You,

Frank   

 
New Post
2/13/2006 12:42 PM
 

Frank,

there could be alot of things going on and without seeing the site I can only guess. The top menu (container) is a table. You can center the table in whatever it is in. Maybe you want to center the items themselves, then you should be able to center them text-align:center.

My favorite way to approach a problem like this is analyzing it with the help of the web deveoper extension in firefox. You can download it from the Extensions menu item.

Peter


Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
New Post
2/13/2006 4:04 PM
 
As Schotman said it is dependent on the way you are doing the menu. but you can try  text-align:center in RootMenuitem  TD or MainMenu_MenuItem

Salar

 
New Post
2/13/2006 8:30 PM
 

I know I had similar problems. 

I believe there are classes that are probably effecting the position of the menu.  I was wanting to apply certain padding to each menu item, and when I used the SolPart menualignment="Center" attribute, it seemed to try to justify the menu and screwed up my spacing. 

A work around that worked for me was to edit my skin, dropping another table inside your current MENU td, center align this table (and you can give it 0 padding, border etc) and then drop the MENU into this (so it's one nested table down from where it was).  You can then leave the alignment 'left' on teh MENU as it's your new nested table which has the 'center' applied to it.

Hope this helps,

R.


for info on our website DNN skinning, feel free to check out our website at: www.spwd.co.nz
 
New Post
2/14/2006 3:40 PM
 

G'day,

I went thru this recently, and found the setting in the skin.xml file overrides everything else for the alignment of the solpartmenu.

I did the following, in this order:

1. Put the xml code (below) in the skin.xml
2. zip up and upload the skin
3. selected the skin and pressed "Parse Skin Package"
4. applied the skin
5. closed and reopend the web site and it was good. 
(Some of the above steps may not be needed, but hey, it worked for me...)

<Objects>
  <Object>
    <Token>[SOLPARTMENU]</Token>
    <Settings>
      <Setting>
        <Name>menualignment</Name>
        <Value>Right</Value>
      </Setting>
    </Settings>
  </Object>
</Objects>

 

 
Previous
 
Next
HomeHomeUsing DotNetNuk...Using DotNetNuk...Skins, Themes, ...Skins, Themes, ...Center Align TopMenuCenter Align TopMenu


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
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me
Have Someone Contact Me
Charlotte DoDNN

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

Advertisers

Exact Target Exec Alert
r2integrated
Telerik JustCode Free

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. 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 the DotNetNuke Store where users purchase third party apps for the platform.