Need
DNN Support
?
DeskPal.com
Learn DNN / DotNetNuke
Login
Subscribe to DNNCreative
Home
Subscribe
Training & Tutorials
Tutorials for Beginners
Tutorials for Administrators
Tutorials for Core Modules
Tutorials for Advanced Users
How to Build a Website in DotNetNuke
Skinning Tutorials
Module Development
Third Party Modules
Forum
Search
Search
Home
Subscribe
+
Training & Tutorials
Tutorials for Beginners
Tutorials for Administrators
Tutorials for Core Modules
Tutorials for Advanced Users
How to Build a Website in DotNetNuke
Skinning Tutorials
Module Development
Third Party Modules
Forum
You need to
Register
for free and
Login
to post a message in the forum.
Forum
Forums
Search Forum
Search
Advanced Search
Topics
Posts
Unanswered
Active Topics
Forums
>
Skinning Toolkit
>
Skinning Toolkit
DNN NAV Menu will not center in IE
Last Post 06/11/2008 9:00 AM by
Lee Sykes
. 5 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
Ed Fran
Nuke Newbie
Posts:5
06/03/2008 12:05 PM
Hello,
I have created a skin using the DNN NAV menu and cannot seem to find the correct class (or the correct set of styles) to get the menu to center in IE. The menu only spreads across the page and it does not seem to matter what I set the margins and alignment at. The menu does center in FireFox but it seems to center twice - the first time it is partially centered and then when I hover over the menu it realigns and recenters correctly.
I have tried the following classes to no avail:
.MainMenu_MenuItem td
{font: 1.4em Georgia, "Times New Roman", Times, serif; cellspacing: 0; }
.MainMenu_RootMenuItem
{ align: center; margin-right: auto; margin-left: auto; text-align:center; cellpadding: 0; cellspacing: 0; }
.MainMenu_RootMenuItem td
{font: 1.4em Georgia, "Times New Roman", Times, serif;
margin-right: auto; margin-left: auto; text-align:left; }
.MainMenu_RootMenuItemSel td
{font: 1.4em Georgia, "Times New Roman", Times, serif;
margin-right: auto; margin-left: auto; text-align:left; }
.MainMenu_SubMenuItemSel td
{font: 1.4em Georgia, "Times New Roman", Times, serif;}
.MainMenu_MenuContainer
{text-align: center; display: inline; margin-right: auto; margin-left:
auto; cellpadding: 0; cellspacing: 0; align: center; }
Does anyone have an idea what I need to do to get the menu to center in IE? Also, can I adjust it so that the menu does not move when I hover over it (the first time) in Firefox?
Any help would be much appreciated.
Laura
Lee Sykes
DNN Creative Staff
Nuke Master VI
Posts:4945
06/05/2008 3:01 AM
Hello,
I haven't done that much experimentation with the NAV menu, but I am about to tackle it over the next month or so. - The techniques I use for investigating all of the classes used in the styling of any DNN element are outlined here:
Troubleshooting DotNetNuke Skins
You should be able to use those techniques to troubleshoot your menu in FF and work out the best method for centering, hope this gives you a starting point, thanks,
Lee Sykes
Site Administrator
Subscribe to the website
:
DotNetNuke Video Tutorials
:
The Skinning Toolkit
:
DotNetNuke Podcasts
Twitter:
www.twitter.com/DNNCreative
Ed Fran
Nuke Newbie
Posts:5
06/08/2008 8:42 PM
Thank you Lee. I have been working with web developer tool bar for some time now and I see the css classes and styles applied but it just seems that IE is ignoring the "text-align: center" and I do not know why Firefox realigns after I mouse-over (it appears that it thinks that the spacer.gif is larger before the mouse-over.) If I figure this out I will post the fix, in the meantime, if anyone knows of the fix could you please pass it on?
Thanks again,
Laura
Ed Fran
Nuke Newbie
Posts:5
06/09/2008 8:50 PM
Well, I got the menu to center in IE by adding a width of 50% to the CSSContainerRoot (MainMenu_MenuContainer - see below.) So, if anyone else has this problem...
.MainMenu_MenuContainer
{ display: inline;
margin-right: auto;
margin-left: auto;
align: center;
text-align: center;
width: 50%;
}
However, the menu centers in Firefox but contains extra spaces to the left and right of each menu link. When I hover over a link the menu then realigns and gets rid of the extra spaces (I have the hover defined the same as the menu.) It looks like it tries to leave space for an image to the left of the link - is there some way of getting rid of this non-existant image? I tried the following:
.MainMenu_Separator { width: 0px; height: 0px; padding: 0px; margin: 0px; }
.MainMenu_MenuIcon { cursor: pointer; width: 1px; height: 1px;}
.MainMenu_MenuArrow {width: 0px; height: 0px; border: 0px; }
.MainMenu_RootMenuArrow {width: 0px; height: 0px; border: 0px; }
Any ideas for my Firefox problem?
Laura
Ed Fran
Nuke Newbie
Posts:5
06/10/2008 12:17 PM
I now have this figured out. Just FYI, when I displayed the menu in block form the menu stopped moving around but it would not center. When I displayed it in inline-block the menu was centered and did not move around. I still needed the work around for IE but now the menu displays as it should in IE and Firefox. Now to check out Oprah...
Laura
Lee Sykes
DNN Creative Staff
Nuke Master VI
Posts:4945
06/11/2008 9:00 AM
Thanks for adding the info,
Lee
Lee Sykes
Site Administrator
Subscribe to the website
:
DotNetNuke Video Tutorials
:
The Skinning Toolkit
:
DotNetNuke Podcasts
Twitter:
www.twitter.com/DNNCreative
You are not authorized to post a reply.
Special Bonuses
--Subscriber Bonuses
--Readers Offers
Users Lounge
--Announcements
--DNN Creative Articles
--Everything Else
--Feedback, Suggestions and More
--Membership
--Site Review Please!
--Testimonials
--Podcasts
DotNetNuke®
--DotNetNuke® Questions
--Modules
--Modules - What's needed?
--Quick Tips
Hosting
--DotNetNuke® Hosting Providers
Skinning Toolkit
--Skinning Toolkit
UK DotNetNuke User Group
Forums
>
Skinning Toolkit
>
Skinning Toolkit
Latest Forum Posts
Can you Run Xcode in Linux?
by Aman Singh
Can you Run Xcode in Linux?
Can you Run Xcode in Linux?
by Aman Singh
Can you Run Xcode in Linux?
Billed for subscription that was canceled
by Ryan
I was just billed for a subscription that was canc eled / inactivetive how do I get a refund for th
Meta Title and Meta Description are not showing properly
by DNN User
Hi, On my site the meta title and meta descriptions are not showing properly. It's showing the m
Search is not functioning properly
by DNN User
Site: https://www.prv-engineering.co.uk/search If I search any item only the 1st option under sea
Search is not functioning properly
by DNN User
Site: https://www.prv-engineering.co.uk/search If I search any item only the 1st option under sea
DNN Platform import site optio
by Melanie Weaver
Is it possible to import site template in DNN Platform 8.0? We have internal Evoq Content 8.1 tha
Events Module for DNN V5?
by Tugboat
Would anyone have a download link for the version 5.0.3 Events Module? Thanks!
"Ghost" TabID Number?
by Tugboat
Hi! I have a portal instance with multiple child portals and on one of the child portals, there i
RE: DNN Load Testing
by ayman sharkawy
Hi. Have you already implemented a site using the DNN . And how the performance of the site and its
Publish All Pages
by NSUOK
I'm using DNN Evoq Content Basic 8.2.0. When I make the HTML Pro module display on all pages, I h
Simpler profile needed in 9.2.2
by Donald
We are upgrading a DNN 4.8.4 site to DNN 9.2.2. On 4.8.4, the top bar shows the user’s name. If yo
How to link from dnnmodal popup to web site page?
by Donald
Hello all. I am using a dnnmodal.show popup. The popup works correctly, showing the content that I
RE: Document Collaboration
by Nick Davern
That feature would be super beneficial for our needs as well! Does anyone have an update as to if th
RE: DNN 9.2, how to set default theme?
by Andy Stephenson DNN Creative
you do that under "Manage/Themes". Note the highlight blue border around the default container and d
DNN 9.2, how to set default theme?
by Donald
Please disregard, found Manage Themes I cannot find how to set a default portal theme in DNN 9.2
RE: Looking for DataSprings Dynamic Forms
by Andy Stephenson DNN Creative
Your best chance would be to contact Chad Nash @ http://www.datasprings.com/
Looking for DataSprings Dynamic Forms
by Jakir HM
Looking for DataSprings Dynamic Forms 3.4 for DNN 4.x 5.x for my site (https://themasters2018s.com/)
RE: Help with Cycle Image Carousel not displaying images
by peter
I had the same problem with the Will Strohl Content Slider after upgrading to DNN 9.1 The above an
RE: Object reference not set to an instance of an object
by Andy Stephenson DNN Creative
Check this one might be useful: http://www.dnnsoftware.com/answers/im-tryin-to-move-my-site-to-pr
Used
By
Testimonials