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 Root Menu Item Text in FirefoxCenter Root Menu Item Text in Firefox
Previous
 
Next
New Post
10/30/2007 2:04 PM
 

I'm working with the solpart menu aligned vertically, and am having trouble gettting the root menu items (Home, Host, Admin, etc..) to center in the menu div in firefox.  I was able to get IE 7 to center the menu by applying the Text-align:center style to the containing div.  This does not appear to work in the newest version of firefox.  I can get the submenu to center without problems in both browsers.

Anyone know the magic bullet to get this working?

BTW, DNN rocks!  Just thought I'd say that :)

 
New Post
10/31/2007 3:47 AM
 

Make sure you apply your centering to the right element, because there are a lot of tables involved. E.g. if you don't give the menu container a width it stretches to the size of the containing element. You probably want to align the menu items themselves so .your-root-menu-item-class TD {width: 200px; text-align: center; } should do the trick

Peter


Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
New Post
10/31/2007 6:13 AM
 

Like Peter said, there's a lot of tables involved and it could be quite a hassle to get the menu right (at least, that's my experience being not too much of a skinner).

You might wanne give HouseMenu a go, from House of Nuke. People seem to have less troubles configuring that one.


Web applications, DNN websites, modules, skins and support
 
New Post
10/31/2007 4:32 PM
 

I'm going to try peter's suggestion first, and if that doesn't work, it's off to house of nuke.

BTW, I don't know if this matters, but I'm not using the table menu option ( = false).  Will accept answers as soon as I've fixed.

 
New Post
10/31/2007 4:49 PM
 

Well, this solution did not work.  Here's the CSS

.MainMenu_RootMenuItem
{
    width:163px;
    min-width:163px;
    line-height: 23px;
    text-align:center;
    padding-top:2px;
}

The padding and line-height settings are working properly, but the width and text-align settings are NOT working in firefox.

I looked at the code generated by the menu, and here it is:

<div id="Div_Menu">
<span id="dnn_dnnSOLPARTMENU_ctldnnSOLPARTMENU" name="dnn$dnnSOLPARTMENU$ctldnnSOLPARTMENU" BackColor="#333333" IconBackgroundColor="#333333" HlColor="#FF8080" ShColor="#404040" SelForeColor="White" SelColor="#CCCCCC" FontStyle="font-family: Tahoma,Arial,Helvetica; font-size: 9pt; font-weight: bold; font-style: normal; text-decoration: " SysImgPath="/images/" Display="vertical" MenuBarHeight="16" MenuItemHeight="21" IconWidth="15" MOutDelay="500" MenuTransition="None" BorderWidth="0" IconImgPath="/Portals/0/" ArrowImage="breadcrumb.gif" RootArrowImage="breadcrumb.gif" RootArrow="-1" CSSMenuArrow="MainMenu_MenuArrow" CSSMenuBreak="MainMenu_MenuBreak" CSSMenuContainer="MainMenu_MenuContainer" CSSMenuBar="MainMenu_MenuBar" CSSSubMenu="MainMenu_SubMenu" CSSMenuIcon="MainMenu_MenuIcon" CSSMenuItem="MainMenu_MenuItem" CSSMenuItemSel="MainMenu_MenuItemSel" CSSRootMenuArw="MainMenu_RootMenuArrow" XML="&lt;root>&lt;menuitem id=&quot;36&quot; title=&quot;Home&quot; url=&quot;http://dev.ghexperts.com/Home/tabid/36/Default.aspx&quot; lefthtml=&quot;&amp;lt;img alt=&amp;quot;*&amp;quot; BORDER=&amp;quot;0&amp;quot; src=&amp;quot;/images/breadcrumb.gif&amp;quot;&amp;gt;&quot; css=&quot;  &quot; />&lt;/root>">
</span><br />
</div>
What is going on here?  It's a mystery to me.
BTW, thanks for the help thus far!
 
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Center Root Menu Item Text in FirefoxCenter Root Menu Item Text in Firefox


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