Border, Margin, or Cellpadding Problem

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
bironeb
Forum Commoner
Posts: 59
Joined: Thu Nov 20, 2003 12:02 pm

Border, Margin, or Cellpadding Problem

Post 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?
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

you could use this instead of teh way your doing it

Code: Select all

<!-- CSS -->
table &#123;
margin: +0px;
&#125;
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post 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.
phait
Forum Commoner
Posts: 46
Joined: Wed Apr 07, 2004 4:41 am
Location: watford / leicester, UK

Post 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?
Post Reply