Master Page Menu Control

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>
 
B

Beauregard T. Shagnasty

Bgreer5050 said:
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.

Why do you want that? It is _most_annoying_!

Don't post code. What is that anyway? It's not HTML ... Post the URL to
the page.
 
T

Travis Newbury

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.

Why? Are your visitors so dumb that they will forget where the menu
was?
 
B

BootNic

On Fri, 11 Jul 2008 09:31:17 -0700
Ed Mullen wrote: [snip]
position:fixed instead of position:relative

Doesn't work on IE6/7 without a workaround.

In standards compliance mode IE 7 supports position:fixed; no
workaround required.


--

BootNic Fri Jul 11, 2008 01:09 pm
Happiness is not something you experience, it's something you
remember.
*Oscar Levant*

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkh3k88ACgkQylMUzZO6jeJdiwCgnWxqdv8ZQbdZk4af49bRJONB
ciwAn3/BYiDIkKZpV4PIJ76wJqfBCsOV
=PHIO
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top