Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

table wdth in IE6

Status
Not open for further replies.

y2k1981

Programmer
Aug 2, 2002
773
IE
Hi All,

I setup this website a while ago, at - I haven't worked on it in a while, but I'm beginning to now again. if you have a look at the home page, can somebody explain to me why, in IE 6, there is a gap at the end of the table, yet when I view it in any other browser (opera, netscape, IE5) there isn't. The calculations are correct, the table is 70px, the first TD is 680 px and the last one is 20px. So what's going on, can somebody help me out here?

Thanks in advance
 
Interestingly enough, it is your DOCTYPE declaration that confuses IE6. Lose the DOCTYPE and things will return to normal. Though I am not seriously suggesting that. I am confused as to why you are using the frameset.dtd on your site since I can see no frames. I would change that to:

<!DOCTYPE html
PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
&quot;DTD/xhtml1-transitional.dtd&quot;>


and then run your site under a validator:


First thing you could try to tackle is moving the table and cell widths to css (style=&quot;width: 680px;&quot;) and then the align attributes (style=&quot;text-align: center;&quot;). That will probably yield a solution.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top