Buttons and Nav are not displaying correctly after upgrading to 2.3.6.6

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
6/4/2011 10:39:49 PM
Gravatar
Total Posts 165

Buttons and Nav are not displaying correctly after upgrading to 2.3.6.6

Hey Joe,

Having a small problem with my skin for http://www.dsatallahassee.org, as you will see on the site, the nav is top aligned for some reason and if you go to a page that has a button, those are no longer showing.

I took the select files from my 24 Artisteer and copied them over to a 30 skin because when I tried to use the 24 skin things were greatly worse. 

I believe I have made all the updates that are talked about in this forum and other posts, but still having an issue.

Can you please point me in the correct direction on how to fix this and also, if you would like to look at files let me know.

Also, just want you to know that http://sql.dsatallahassee.org is a different version of mojoPortal and the buttons and nav are working correctly.

(Just FYI)  This is one of my biggest clients and so far they really love mojoPortal.

 

Thanks again for all the help the other day... I hope the beers were nice and cold.

6/4/2011 11:57:57 PM
Gravatar
Total Posts 165

UPDATE Re: Buttons and Nav are not displaying correctly after upgrading to 2.3.6.6

Well I found the problem for the button... For some reason the new system is look for .art-button-r  where the old one was looking for .r

So, now on to the nav:  What I found and I just don't understand is, when looking at 'view source' you see this up in the header:

/* <![CDATA[ */

    #ctl01_SiteMenu1_ctl00 img.icon { border-style:none;vertical-align:middle; }

    #ctl01_SiteMenu1_ctl00 img.separator { border-style:none;display:block; }

    #ctl01_SiteMenu1_ctl00 img.horizontal-separator { border-style:none;vertical-align:middle; }

    #ctl01_SiteMenu1_ctl00 ul { list-style:none;margin:0;padding:0;width:auto; }

now, the one right above this line is the one creating the issue, the padding:0 is over writing what the style sheet says to do.

And I'm not sure why this is there...  So, HELP!   I did very well until now.

Thanks,

 

Mark

6/5/2011 1:00:08 PM
Gravatar
Total Posts 18439

Re: Buttons and Nav are not displaying correctly after upgrading to 2.3.6.6

Hi Mark,

That style block at the top comes from the ASP.NET Menu control. Some of that stuff may be caused by having something in theme.skin that refers to <asp:Menu

I would look there and remove anything you see that starts with <asp:Menu runat="server"... That should get rid of some of what is in that style block. If you are using .NET 3.5 it may be coming from the /App_Themes/default/theme.skin file rather than the one in your skin folder, so I would check both of those.

It appears this site is running under .NET 3.5 because that style block goes away in .NET 4 (unless you have it specifically configured to render in .NET 3.5 mode which can be done in .NET 4). But then in .NET 4 there is a different problem where it adds style to the menu from javascript.

In either case you can override those styles from your own CSS by adding the !important qualifier to your style rules as needed.

like if that bottom rule padding:0 is what is causing the problem, you could add this in your CSS and override it:

ul.art-menu { padding-top: 5px !important; }

it is a matter of figuring out which thing is conflicting with your style rule and then making your own setting more important.

The article The Trouble With ASP.NET Menu provides some information related to this.

Hope that helps,

Joe

6/6/2011 5:40:33 PM
Gravatar
Total Posts 165

Re: Buttons and Nav are not displaying correctly after upgrading to 2.3.6.6

Thanks Joe, I'll take a look at that... This site is running 4.0 so I'm not sure why it would show 3.5...

6/7/2011 6:19:24 AM
Gravatar
Total Posts 18439

Re: Buttons and Nav are not displaying correctly after upgrading to 2.3.6.6

There are 2 things that can make .NET 4 render the same as .NET 3.5.

As stated in the article, if you have this in theme.skin it will force the menu to use .NET 3.5 rendering

<portal:mojoMenu runat="server" SkinID="SiteMenu"
UseNet35Mode="true"
/> 

and if you don't have this:

<pages ... controlRenderingCompatibilityVersion="4.0" ...

in Web.config then by default .NET 4 would use .NET 3.5 rendering on all controls in order to be backward compatible with .NET 3.5

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.