Hi all,
I've encounted some layout issues at my page after setting IE8 to running in Compatibility View.
One issue is in using RadButton with an icon. I've created a small sample project which code is shown beneath, and layout difference is attached this thread.
Can anyone tell me why these difference occurs? And how to solve the issue...?
ASPX Code:
I've encounted some layout issues at my page after setting IE8 to running in Compatibility View.
One issue is in using RadButton with an icon. I've created a small sample project which code is shown beneath, and layout difference is attached this thread.
Can anyone tell me why these difference occurs? And how to solve the issue...?
ASPX Code:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <style type="text/css"> .iconStyle { top: 4px !important; left: 5px !important; height: 32px !important; width: 32px !important; } </style> <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" /></head><body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> <Scripts> <%--Needed for JavaScript IntelliSense in VS2010--%> <%--For VS2008 replace RadScriptManager with ScriptManager--%> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> </Scripts> </telerik:RadScriptManager> <script type="text/javascript"> //Put your JavaScript code here. </script> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> </telerik:RadAjaxManager> <div> <telerik:RadButton runat="server" ID="RadButton1" Text="Go to basket" Height="40px" Width="200px" EnableBrowserButtonStyle="true"> <Icon PrimaryIconUrl="App_Themes/Default/Graphics/shopping_cart_lrg.png" PrimaryIconCssClass="iconStyle" /> </telerik:RadButton> </div> </form></body></html>