Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3550
Disable inherited padding
posted

I have a dropdown inside td.

The td padding is set to 4px.

I dont want the dropdown to inherit from the td.

I even wrap it with div that is set to 0px;

But it inherits the 4px of the td.

 

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication12.WebForm1" %>

<%@ Register Assembly="Infragistics4.Web.v12.2, Version=12.2.20122.2054, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.Web.UI" TagPrefix="ig" %>
<%@ Register Assembly="Infragistics4.Web.v12.2, Version=12.2.20122.2054, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.Web.UI.ListControls" TagPrefix="ig" %>
<!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 media="screen" type="text/css">      
        .pad4 td
        {
            border: 1px solid black;
            padding: 4px;
        }
        .pad0
        {
            padding: 0px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <ig:WebScriptManager ID="WebScriptManager1" runat="server">
    </ig:WebScriptManager>
    <table class="pad4">
        <tr>
            <td>
                <div class="pad0">
                    <ig:WebDropDown ID="WebDropDown1" runat="server" Width="200px">
                    </ig:WebDropDown>
                </div>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>

Parents
No Data
Reply Children
No Data