Results 1 to 4 of 4

Thread: Percentage problem on width of table columns

  1. #1
    Join Date
    Nov 2008
    Posts
    94

    Percentage problem on width of table columns

    The table column on my page is set to 15% and the width on the 3 middle columns are 39% each. I don't want to be over 350 pixels in width on table column. It should display smaller size on page.How can I prevent this or overcome this?

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: Percentage problem on width of table columns

    The table displayed in page is used for page layout?Table-based layouts require a lot more HTML markup than do standards-based layouts. You can set the CSS property "max-width" :
    Code:
     <table style="max-width:350px;">

  3. #3
    Join Date
    Jan 2009
    Posts
    199

    Re: Percentage problem on width of table columns

    WIDTH = "width expression" Using the width attribute, you can explicitly set the width of your table.
    Code:
    <TABLE BORDER>
    <TR> <TD WIDTH="90%">f</TD> <TD WIDTH="30%">a</TD> </TR>
    <TR> <TD>b</TD> <TD>e</TD> </TR>
    <TR> <TD>c</TD> <TD>d</TD> </TR>
    </TABLE>
    When defining a width in pixels, keep in mind the available space on your web page with respect to the screen resolution. This code will make gp means set width of 90 in first row.

  4. #4
    Join Date
    Dec 2008
    Posts
    177

    Re: Percentage problem on width of table columns

    A table will not display until ALL of the HTML it has loaded, when set width of table make sure that WIDTH is set as the width of the table cell.When using percentages as values for the width attribute, web browsers will automatically resize your table according to available screen space defined in the screen resolution.

Similar Threads

  1. How to find percentage of columns data in Excel
    By Kungfu Pandey in forum Windows Software
    Replies: 2
    Last Post: 07-01-2012, 06:20 PM
  2. How to compare two Date values in two different columns of a table
    By Ehtesham SIddiqui in forum Windows Software
    Replies: 1
    Last Post: 06-10-2011, 11:32 AM
  3. Replies: 5
    Last Post: 27-08-2011, 10:53 AM
  4. HTML page table width not working in Firefox
    By Ground 0 in forum Software Development
    Replies: 4
    Last Post: 23-08-2010, 06:56 PM
  5. How to add or delete columns of table in SQL?
    By Truster in forum Software Development
    Replies: 5
    Last Post: 11-01-2010, 12:09 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,334,213.79890 seconds with 16 queries