Click here to Skip to main content
14,767,338 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

I have an aspnet navigation menu and it is flickering when there are a lot of DOM components in the matrix that is on the page. I am very confused on why. The orientation of the menu is horizontal but it will flicker vertically until the full page loads.

Any help will be great

<pre lang="c#">

.CssMenu ul.AspNet-Menu li.AspNet-Menu-Selected
   background: #1d68ac;

 &lt;style type="text/css"&gt;
        .divBodyBox {
            max-height: 100%;
            max-width: 100%;
            position: relative;
            top: 0;
            left: 0;
        .newMain {
            box-shadow: 0px 0px 15px 10px #888888;
            border: 5px solid;
            /*/ Firefox /*/
            -moz-border-radius: 25px;
            /*/ Safari and chrome /*/
            -webkit-border-radius: 25px;
            /*/ Linux browsers /*/
            -khtml-border-radius: 25px;
            /*/ CSS3 /*/
            border-radius: 25px;
            /*behavior: url(;*/
            behavior: url(; /*IE fix for: border-radius, box-shadow, */
            width: 90%; max-height:100%;
             margin: 0px auto 0px auto;
            background-color: #fff;
        .newPage {
             box-shadow: 0px 0px 15px 10px #888888;
            border: 5px solid;
            -moz-border-radius: 25px;
            -webkit-border-radius: 25px;
            -khtml-border-radius: 25px;
            border-radius: 25px;
            background-color: #fff;
            margin: 0px auto 0px auto;
            /*behavior: url(;*/
            behavior: url(; /*IE fix for: border-radius, box-shadow, */
        .newTableMargin {
            width: 95%; height: 100%; margin-left:5%;
        .newTd {
            width: 100%; height: 100%;
&lt;body id="bdyMaster" class="divBodyBox"  runat="server"&gt;
    &lt;form id="form1"  runat="server"&gt;
        &lt;asp:ToolkitScriptManager ID="ToolkitScriptManager1" ScriptMode="Release" EnableScriptGlobalization="true" CombineScripts="true" runat="server"&gt;


            &lt;asp:Menu ID="NavigationMenu" runat="server" CssSelectorClass="CssMenu" Orientation="Horizontal" StaticSubMenuIndent="10px"&gt;
                <dynamichoverstyle bordercolor="Yellow" borderstyle="None" backcolor="#7C6F57" forecolor="White"></dynamichoverstyle>
                <statichoverstyle bordercolor="Yellow" borderstyle="None" backcolor="#7C6F57" forecolor="White"></statichoverstyle>
                <staticmenuitemstyle horizontalpadding="5px" verticalpadding="2px"></staticmenuitemstyle>
                <staticselectedstyle borderstyle="Solid" bordercolor="Black" borderwidth="5px" backcolor="#5D7B9D"></staticselectedstyle>
                <dynamicselectedstyle borderstyle="Solid" bordercolor="Black" borderwidth="5px" backcolor="#5D7B9D"></dynamicselectedstyle>
                <dynamicmenuitemstyle horizontalpadding="5px" verticalpadding="2px"></dynamicmenuitemstyle>
                <dynamicmenustyle cssclass="DynamicMenu" horizontalpadding="0px" verticalpadding="0px" backcolor="#F7F6F3"></dynamicmenustyle>


        &lt;ul class="newMain"&gt;
            &lt;asp:ContentPlaceHolder ID="MainContent" runat="server"&gt;

                &lt;table style="width: 100%; height: 100%"&gt;
                    &lt;tr style="text-align: center"&gt;

                        &lt;td id="tdContentContainer" valign="top" align="center"&gt;
                            &lt;asp:ContentPlaceHolder ID="mainContentPlaceHolder" runat="server"&gt;


            &lt;br /&gt;

Updated 22-Jan-15 10:15am
Sergey Alexandrovich Kryukov 22-Jan-15 14:42pm
To overcome flickering, one would need to see what's flickering. You did not provide any useful detail; what to fight with?
bobb024 22-Jan-15 14:49pm
I have a screen shot but I do not see where I can upload that too
BacchusBeale 22-Jan-15 15:13pm
We need code of page that is causing this problem
bobb024 23-Jan-15 14:05pm
any thoughts, and I dont agree with this question being marked as 1. Maybe the site should allow for screen shots
Sinisa Hajnal 26-Jan-15 3:22am
You can put the image onto flickr or somewhere and put the link here...
bobb024 26-Jan-15 12:42pm

above is a picture of what is happening. The full menu is built vertically before the page fully loads and then snaps back to horizontal
bobb024 1-May-15 13:02pm
anyone have any thoughts

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900