Page 1 of 1

Border, Margin, or Cellpadding Problem

Posted: Tue Apr 13, 2004 10:15 am
by bironeb
Im sorry this really isn't a php question but more of a html question, I just didn't know who else to ask.

Anyway when I create a table and use includes, it looks fine in Mozilla, but in IE there is a little space between my <TR>

Code: Select all

<body BGCOLOR="#FFFFFF" TEXT="#000000"
      LINK="#3300FF" VLINK="#3300FF" ALINK="#3300FF"
      topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">

Code: Select all

<table border=2 width="100%" height="80%" bordercolor="black"
	cellSpacing="0" cellPadding="0">
So like I said, It looks fine in Mozilla, but the majority of the users accessing the site use IE, and thats where the problem is....

Any ideas?

Posted: Tue Apr 13, 2004 10:17 am
by malcolmboston
you could use this instead of teh way your doing it

Code: Select all

<!-- CSS -->
table &#123;
margin: +0px;
&#125;

Posted: Tue Apr 13, 2004 10:57 am
by kettle_drum
Pretty sure that IE uses marginwidth="0" and marginheight="0" in the <body> tag whereas everybody else uses topmargin="0" leftmargin="0" so you need to use both or use CSS.

Posted: Wed Apr 14, 2004 7:40 am
by phait
hi,
the body tag should not affect how your table displays unless I misunderstand your problem. Could you post the comlpeted table up and let me know the version of IE you are using. I can then copy that code into a page and see how it looks on mine. Is there any reason why you are not using CSS for your tables?