Why does Internet Explorer show a 1px column as a much wider columb

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dylan Levi

    Why does Internet Explorer show a 1px column as a much wider columb

    I have a table setup with 1 row and three columns. The two outer columns are for content, and the middle column is 1px wide with a dark background color in use as a border/separator. For some reason in internet explorer, the column is showing up rather wide.
    Here is the code that I am using:

    Code:
    <table width="100%" border="0" cellpadding="0" id="facilites">
      <tr>
        <th width="49%" scope="col" id="facilites">
        	Left Content
        </th>
        <td width="1px" bgcolor="#666633"></td>
        <th width="51%" scope="col" id="facilites">
        	Right Conent   
        </th>
       
      </tr>
    </table>
    Any help is appreciated.
    Thanks
  • Death Slaught
    Top Contributor
    • Aug 2007
    • 1137

    #2
    1. You should never use tables for layout.
    2. You're using deprecated attributes.
    3. What version of IE are you using?
    4. Are you using a doctype? If so which one?



    Thanks, Death

    Comment

    Working...