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, ...Center Align TopMenuCenter Align TopMenu
Previous
 
Next
New Post
2/12/2006 9: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 4: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 8: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/14/2006 12:30 AM
 

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 7: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 DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Center Align TopMenuCenter Align TopMenu


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