title: table column width in datalist
body: <p>How can I adjust the column width of a table inside a datalist ? I have tried applying the width through CSS and directly on the tag but it doesn't affect the table
   <img src="https://i.imgur.com/BSgE7xX.jpg" alt="image"></p>
  
  <pre><code> &lt;asp:DataList ID="DataList2" runat="server" DataSourceID="ObjectDataSource2" Height="409px" RepeatColumns="3" Width="600px" &gt;
      &lt;ItemTemplate&gt;
          &lt;table class="nav-justified"  cellpadding="0" cellspacing="0" &gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;asp:Image ID="Image1" runat="server" ImageUrl='&lt;%# Eval("productImage") %&gt;'  Width="120" Height="60" /&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr style="width:120px"&gt;
                  &lt;td&gt; &lt;asp:HyperLink ID="HyperLink2" runat="server" CssClass="productName"  NavigateUrl='&lt;%# string.Format("product.aspx?id={0}", Eval("productId")) %&gt;'&gt;HyperLink&lt;/asp:HyperLink&gt; &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr style="width:120px"&gt;
                   &lt;td&gt;&lt;asp:Label ID="Label1" runat="server" class="productPrice" Text='&lt;%# Eval("productPrice") %&gt;' &gt;&lt;/asp:Label&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr style="width:120px"&gt;
                  &lt;td&gt; &lt;asp:Button ID="Button1" CssClass="addToCart" runat="server" Text="+" /&gt;  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
     &lt;/ItemTemplate&gt;
  </code></pre>