IE8 table problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • josephamarks
    New Member
    • Apr 2010
    • 2

    IE8 table problem

    I am trying to correct a table problem.

    In IE6, the table (created in VS with ASPX) does display correctly.

    Ijn IE8, it adds unwanted horizontal scrollbars, and the columns do not display properly -- they are too spread out without the horizontal scrollbars.

    Is there any way to restrain the columns so that the horizontal scrollbars are not needed.

    I know how to set overflow to hidden so that the horizontal scrollbars do not appear; however, I still need to set the columns properly.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    What control are you using to generate your table?

    Comment

    • josephamarks
      New Member
      • Apr 2010
      • 2

      #3
      I'm brand new to ASPX!

      Here are some of the commands to generate the table, I've removed anything that might be IP of my company:

      AjaxControlTool kit

      asp:Content runat="Server">

      " SelectMethod="

      Apparently, the table just starts with the following command:

      <table width="100%">

      This table appeared correctly in IE6, but not IE8.

      I know that IE8 has problems with percentages, may this be part of the trouble?

      THANKS!

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        Set the width of your <td> elements (columns) so that they are a percentage.
        Calculate the width percentage based on the number of columns there are in the table.

        For example, the width percentage for one column would be: 1/numberOfColumns *100.

        That will make all of your columns the same width.

        I'm not exactly sure why you're seeing scroll bars because normally you don't have scroll bars (unless the table is within an element like a div that has an oveflow:auto/scroll style set).

        You need to provide more information about your page layout for more help.

        -Frinny

        Comment

        Working...