Advertisement

03.26.2008 at 03:54AM PDT, ID: 23269901 | Points: 500
[x]
Attachment Details

set html table column width

Asked by flynny in Hypertext Markup Language (HTML), Programming for ASP.NET

hi all i have a web control which ocntains a table. on each side of the table i have a column for a rounded image (to make it look nicer and so that ti can be resizable). i have set this as a background image to each top left and top right cell. and set the width="10px" however when i view the page these columns are appearing as narrow as they can an not the width i want.

heres the code

<%@ Control Language="VB" AutoEventWireup="true" CodeFile="large_product.ascx.vb" Inherits="large_product" %>

<Table class="largeProduct" width="100%">
    <tr>
        <td width="15px" background="images/rounded_left.gif"></td>
        <td class="largeProductTitle" colspan="4">
            <asp:label id="title" text="Featured Product" runat="server"/>
        </td>
        <td width="15px" background="images/rounded_right.gif"></td>
    </tr>
    <tr>
        <td />
        <td rowspan="3">
            <img alt="Product Image" width="158" height="214" />
        </td>
        <td colspan="3">
            <asp:label id="brief_des" runat="server"/>
        </td>
        <td />
    </tr>
    <tr>
      <td/>
        <td class="largeProductHeaderCell" height="15">
            <asp:label text="Size" RunAt="server"/>
          </td>
        <td class="largeProductHeaderCell" height="15">
            <asp:label text="Flavours" RunAt="server"/>
          </td>
        <td class="largeProductHeaderCell" height="15">
            <asp:label text="Price" RunAt="server"/>
      </td>
      <td/>
    </tr>
    <tr>
      <td/>
        <td>
            <asp:dropdownlist id="sizes" runat="server"/>
          </td>
        <td>
            <asp:dropdownlist id="flavours" runat="server"/>
          </td>
        <td>
            <asp:label id="price" runat="server"/>
      </td>
      </td>
    </tr>
    <tr>
      <td />
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            Additional info
        </td>
      </td>
    </tr>
</Table>

any ideas?Start Free Trial
[+][-]03.26.2008 at 06:20AM PDT, ID: 21211268

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.26.2008 at 06:24AM PDT, ID: 21211299

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.26.2008 at 07:55AM PDT, ID: 21212282

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.26.2008 at 08:31AM PDT, ID: 21212706

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.26.2008 at 09:02AM PDT, ID: 21213072

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.26.2008 at 09:48AM PDT, ID: 21213652

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628