Results 1 to 3 of 3

Thread: Asp:menu and Google Chrome browser

  1. #1
    Frenzied Member
    Join Date
    Jan 01
    Location
    Denmark
    Posts
    1,045

    Asp:menu and Google Chrome browser

    I have an application including an Asp:menu. This renders perfectly in both IE and Firefox, see screenshot gf1.jpg.
    Running in Chrome the rendering is bad. There is added wide space in the top menu, so the area is much wider, and thereby not correct. See gf2.jpg.
    I have tried using this workaround found by surfing, but it is still the same. Can I add some additional code, that will prevent this?
    Code:
    If Request.UserAgent.IndexOf("Chrome") > 0 Then
                If Request.Browser.Adapters.Count > 0 Then
                    Request.Browser.Adapters.Clear()
                    Response.Redirect(Page.Request.Url.AbsoluteUri)
                End If
            End If
    I want it to be displayed equally in IE, Firefox and Chrome, please help in this Name:  gf1.jpg
Views: 123
Size:  25.8 KBName:  gf2.jpg
Views: 120
Size:  29.1 KB

  2. #2
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 04
    Location
    The Granite City
    Posts
    21,744

    Re: Asp:menu and Google Chrome browser

    Hey,

    Are you using the out of the box ASP.NET Menu, or do you have any custom HTML being emitted?

    Also, is it possible to see the CSS that you are using?

    Gary

  3. #3
    Frenzied Member
    Join Date
    Jan 01
    Location
    Denmark
    Posts
    1,045

    Re: Asp:menu and Google Chrome browser

    Out of the box and only formatting like this:
    Code:
    <asp:Menu Width=724px ID="Menu1" runat="server" BackColor="White"
                                                                    Font-Bold="True" Font-Names="Arial" Font-Size="8pt" ForeColor="White" Orientation="Horizontal"
                                                                    StaticSubMenuIndent="" Style="border-right: gray 1px solid; border-top: gray 1px solid;
                                                                    font-size: 10pt; text-transform: none; border-left: gray 1px solid; cursor: hand;
                                                                    text-indent: 10pt; border-bottom: gray 1px solid; font-family: Arial; background-color: lavender">
                                                                    <StaticMenuItemStyle BackColor="#0082d1" HorizontalPadding="1px" VerticalPadding="2px" />
                                                                    <DynamicHoverStyle BackColor="#054798" Font-Names="Arial" ForeColor="White" />
                                                                    <DynamicMenuStyle BackColor="#F7F6F3" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                                                                    <StaticSelectedStyle BackColor="#054798" ForeColor="White" />
                                                                    <DynamicSelectedStyle BackColor="#054798" ForeColor="white" Font-Size="8pt" />
                                                                    <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" ForeColor="#696969" />
                                                                    <Items>
                                                                        <asp:MenuItem Text="Pressure drops" Value="1-1">
                                                                            <asp:MenuItem Text="Along pipe" Value="1-1"></asp:MenuItem>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •