B
Bgreer5050
I have a menu control in my master page. How and where in my code can I
change the menu so that it is fixed. I know how to make the background
fixed, but I also want the menu always visible no matter how far down the
user scrolls.
Thanks for any help.
Code:
<asp:Menu ID="Menu1" runat="server" BackColor="#FFFBD6"
DynamicHorizontalOffset="2"
Font-Names="Verdana" Font-Size="0.9em" ForeColor="#990000"
StaticSubMenuIndent="10px"
Style="position:relative ; top: -14px; left: -1px; height: 32px;"
Orientation="Horizontal" Width="100%">
<StaticMenuStyle BackColor="#E3D1B0" />
<StaticSelectedStyle BackColor="#FFCC66" />
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px"
BackColor="#E3D1B0" />
<DynamicHoverStyle BackColor="#990000" ForeColor="White" />
<DynamicMenuStyle BackColor="#FFFBD6" />
<DynamicSelectedStyle BackColor="#FFCC66" />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px"
BackColor="#E3D1B0" />
<StaticHoverStyle BackColor="#990000" ForeColor="White" />
<Items>
<asp:MenuItem Text="Home ." Value="Home"></asp:MenuItem>
<asp:MenuItem Text="Contact Us" Value="Contact Us"></asp:MenuItem>
<asp:MenuItem Text="Hose and Fittings ." Value="Hose and Fittings">
<asp:MenuItem Text="Hose Assemblies" Value="Hose Assemblies"></asp:MenuItem>
<asp:MenuItem Text="Hose Without Fittings" Value="Hose Without
Fittings"></asp:MenuItem>
<asp:MenuItem Text="Fittings Only" Value="Fittings Only"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="Accumulator Bags ." Value="Accumulator
Bags"></asp:MenuItem>
<asp:MenuItem Text="Cylinders ." Value="Cylinders"></asp:MenuItem>
<asp:MenuItem Text="Valves ." Value="Valves">
<asp:MenuItem Text="Servo" Value="Servo"></asp:MenuItem>
<asp:MenuItem Text="Directional" Value="Directional"></asp:MenuItem>
<asp:MenuItem Text="Flow Control" Value="Flow Control"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="Machine Shop Services ." Value="Machine Shop
Services"></asp:MenuItem>
<asp:MenuItem Text="Training" Value="Training"></asp:MenuItem>
</Items>
</asp:Menu>
change the menu so that it is fixed. I know how to make the background
fixed, but I also want the menu always visible no matter how far down the
user scrolls.
Thanks for any help.
Code:
<asp:Menu ID="Menu1" runat="server" BackColor="#FFFBD6"
DynamicHorizontalOffset="2"
Font-Names="Verdana" Font-Size="0.9em" ForeColor="#990000"
StaticSubMenuIndent="10px"
Style="position:relative ; top: -14px; left: -1px; height: 32px;"
Orientation="Horizontal" Width="100%">
<StaticMenuStyle BackColor="#E3D1B0" />
<StaticSelectedStyle BackColor="#FFCC66" />
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px"
BackColor="#E3D1B0" />
<DynamicHoverStyle BackColor="#990000" ForeColor="White" />
<DynamicMenuStyle BackColor="#FFFBD6" />
<DynamicSelectedStyle BackColor="#FFCC66" />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px"
BackColor="#E3D1B0" />
<StaticHoverStyle BackColor="#990000" ForeColor="White" />
<Items>
<asp:MenuItem Text="Home ." Value="Home"></asp:MenuItem>
<asp:MenuItem Text="Contact Us" Value="Contact Us"></asp:MenuItem>
<asp:MenuItem Text="Hose and Fittings ." Value="Hose and Fittings">
<asp:MenuItem Text="Hose Assemblies" Value="Hose Assemblies"></asp:MenuItem>
<asp:MenuItem Text="Hose Without Fittings" Value="Hose Without
Fittings"></asp:MenuItem>
<asp:MenuItem Text="Fittings Only" Value="Fittings Only"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="Accumulator Bags ." Value="Accumulator
Bags"></asp:MenuItem>
<asp:MenuItem Text="Cylinders ." Value="Cylinders"></asp:MenuItem>
<asp:MenuItem Text="Valves ." Value="Valves">
<asp:MenuItem Text="Servo" Value="Servo"></asp:MenuItem>
<asp:MenuItem Text="Directional" Value="Directional"></asp:MenuItem>
<asp:MenuItem Text="Flow Control" Value="Flow Control"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="Machine Shop Services ." Value="Machine Shop
Services"></asp:MenuItem>
<asp:MenuItem Text="Training" Value="Training"></asp:MenuItem>
</Items>
</asp:Menu>