Closed Bug 16777 Opened 25 years ago Closed 25 years ago

Alignment in table off.

Categories

(Core :: Layout: Tables, defect, P3)

x86
Other
defect

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: georgel, Assigned: karnaze)

Details

Attachments

(2 files)

The alignment in this table is left instead of center:
<html>
<body>

<table border="0" CELLSPACING="0" CELLPADDING="0">
        <tr>
          <td width="200" height="90"><img border="0" src="images/mm_logo.gif"
width="200" height="88"></td>
          <td width="90%" align="center" valign="middle">
			<p align="center">
		    <IFRAME WIDTH=468 HEIGHT=60 MARGINWIDTH=0 MARGINHEIGHT=0
HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR="#000000"
SRC="http://adclient.audiohighway.com/html.ng/site=ah&ahproduct=web&ahcatlevel0=
hp&ahcatlevel1=c1_any&ahcatlevel2=c2_any&ahpagepos=top&ahtype=banner&ahspecific=
s_any">
		    <SCRIPT LANGUAGE="JavaScript1.1"
SRC="http://adclient.audiohighway.com/js.ng/Params.richmedia=yes&site=ah&ahprodu
ct=web&ahcatlevel0=hp&ahcatlevel1=c1_any&ahcatlevel2=c2_any&ahpagepos=top&ahtype
=banner&ahspecific=s_any">
		    </SCRIPT>
		    <NOSCRIPT>
		    <A
HREF="http://adclient.audiohighway.com/click.ng/Params.richmedia=yes&site=ah&ahp
roduct=web&ahcatlevel0=hp&ahcatlevel1=c1_any&ahcatlevel2=c2_any&ahpagepos=top&ah
type=banner&ahspecific=s_any">
		    <IMG
SRC="http://adclient.audiohighway.com/image.ng/Params.richmedia=yes&site=ah&ahpr
oduct=web&ahcatlevel0=hp&ahcatlevel1=c1_any&ahcatlevel2=c2_any&ahpagepos=top&aht
ype=banner&ahspecific=s_any">
		    </NOSCRIPT>
		    </IFRAME></p></a>
			</td>
          <td bgcolor="e6e8f3" align=center>
          </td>
        </tr>
      </table></body>

</html>
Assignee: gagan → karnaze
Component: Necko → HTMLTables
Should <td width="90%"> make a table wider?  Is a table cell width relative to
the table or the page?  (HTML does not anwser this, since width is not an
attribute of td.  In CSS, it's the table, I think.)

Moving to HTMLTables.  I have no idea why this was filed against Necko...

It may be a duplicate of an existing bug.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
<td width=90%> can affect the size of an auto width table in Nav and IE and make
it wider than you might expect. For an auto width table, width on a <td> is
relative to the table in Nav and relative to the viewport in IE5 (I think).

I'm not seeing the problem reported in the 2nd attachment. I added a border on
the table and the IFRAME was centered in its cell. This should be verified after
I check in some changes later today or tomorrow, since I am viewing this based
on those changes.
verified:  NT 2000012520
Status: RESOLVED → VERIFIED
blocking-b2g: --- → koi?
blocking-b2g: koi? → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: