2 Attachment(s)
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 :confused:Attachment 90505Attachment 90507
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
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>