Auto Generated Inline Styles - SiteMenu

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.
7/9/2010 5:20:31 PM
Total Posts 40

Auto Generated Inline Styles - SiteMenu

Hey Joe,

After upgrading a mojo installation to use the .NET 4.0 framework I noticed some extraneous CSS appearing just above my </head> tag.

<link rel='canonical' href='' /><style type="text/css">
/* <![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; }
#ctl01_SiteMenu1_ctl00 ul.dynamic { z-index:1; }
#ctl01_SiteMenu1_ctl00 a { text-decoration:none;white-space:nowrap;display:block; }
#ctl01_SiteMenu1_ctl00 a.static { padding-left:0.15em;padding-right:0.15em; }
#ctl01_SiteMenu1_ctl00 a.popout { background-image:url("/WebResource.axd?d=ifWJ0DSlFidP8KWksTh8ExZPBQmkL4Xo5BNEXfbTcC01&t=634122406716945378");background-repeat:no-repeat;background-position:right center;padding-right:14px; }
/* ]]> */
</style><style type="text/css">
.ctl01_PageMenu1_ctl01_0 { text-decoration:none; }


and the corresponding code in my layout.master (don't think it's useful in this instance, but am including anyways):

<head id="Head1" runat="server">
<portal:StyleSheetCombiner id="StyleSheetCombiner" runat="server" />
<portal:iestyleincludes id="IEStyleIncludes1" runat="server" />
<portal:metacontent id="MetaContent" runat="server" />
<portal:favicon id="Favicon1" runat="server" />
<portal:scriptloader id="ScriptLoader1" runat="server" />

I don't believe that was there before (as my site menu appeared fine on the 3.5 framework), and unfortunately, I can't quite deduce how it's getting added, as I see nothing in a file or elsewhere that should be rendering this markup. 

Don't imagine you have any ideas?  I can fix the issue by overriding the generated styles, but my preference would be to simply remove the inline stying altogether.  Anyways, I'll keep working on trying to figure out the problem too...

Thanks Joe.

7/10/2010 8:54:16 AM
Total Posts 40

Re: Auto Generated Inline Styles - SiteMenu

Hey Joe,

After my post yesterday I discovered the problem (or at least, how to fix it).  I "migrated" mojo installations to the 4.0 framework by swapping web.config files (renaming web.net4.config to web.config - i'm using the latest version,, btw).  Guess I should have known better, but, since making this simple change had worked for me before, and since most everything appeared to be working as normal (except for the appearance of menus), I didn't take the additional step of using your 4.0 deployment package. 

Anyways, after switching out my 3.5 files with your 4.0 bundle everything works perfectly once again.


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