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, ...Centering Menu LinksCentering Menu Links
Previous
 
Next
New Post
9/8/2006 3:37 PM
 
Hi Guys,

Here's the site http://mos.sopacreative.com - how do I center the menu links - the developer I'm working with is having a hard time doing so. Any help is appreciated.

Thanks,
Natacha
 
New Post
9/10/2006 12:33 AM
 

Hi Natasha,

In your skin .ascx file, look for this section:

                                <td width="100%" valign="middle" align="left" nowrap>
                                    <dnn:MENU runat="server" ID="dnnMENU" />
                                </td>

Change the align to "center".

Thierry

 
New Post
9/29/2006 3:49 PM
 
This suggestion does not work.  when I'm working with the ascx file in vswebdev, the menu control even shows centered.  The site does not show the menu centered.  any help on this? suggestions?
 
New Post
9/29/2006 10:30 PM
 
If you want to center the whole menu on the page, change your stylesheet for skin.css to this:

.menu
{
height: 29;
width: 740;
background-image: url(images/menu.gif);
text-align: center;
}

If you want each menu item centered then do this:
.menu td { text-align: center;}
 
New Post
10/1/2006 11:29 AM
 

in the file spmenu.js there is a function:

this.menuAlignment = spm_getAttr(o, 'MenuAlignment', 'Center');

if I change it to 'Justified', the menu becomes justified.
If I change it to 'Right", the menu becomes right aligned
If I change it to 'Left', the menu becomes left aligned
If I change it to 'Center', the menu becomes left aligned.

The documentation says I can change it to these four options, but the center option just clearly doesn't work.  I've exauhsted all other methods, such as:
<table>
   <tr>
      <td width="50"></td>
      <td>dnn:menu</td>
      <td width="50"></tr>
</table>

and centering the cell & table the menu is in.  The only real solution that should work would be the center option noted above.  Any idea on how I can get into the code deeper to find out where this option is located?

Any ideas on why the Center option doesn't work?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Centering Menu LinksCentering Menu Links


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