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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table width ignored in Netsape 1

Status
Not open for further replies.

ChrisQuick

Programmer
Oct 4, 1999
144
US
I have a page that has several tables on it, all with a explicit width of 640. In IE all of the tables display the same width. In Netscape one of the tables keeps coming out wider that all the rest. I have checked the HTML using CSE HTMLL Validator Pro version 4.5 and there are no errors in the code.

Any ideas why netscape would ignore the width attribute on one table but not the others? chrisquick@aol.com
Geographic Information System (GIS), ASP, some Oracle
 
This it the code for that one table:
Code:
<FORM NAME='MapForm' ID='MapForm' ACTION='[URL unfurl="true"]http://10.1.1.126/scripts/esrimap.dll'[/URL] METHOD='GET'>
<TABLE WIDTH='640' BORDER='2' ALIGN='CENTER' NOWRAP COLS='4' CELLPADDING='1' CELLSPACING='1'>
<tr><TD  BGCOLOR='#ffdca7' rowspan='6' VALIGN='TOP' ALIGN='LEFT' WIDTH='100'>
<center><b>Search by:</b></center>
<INPUT TYPE=button STYLE=&quot;{background-color: blue; font-weight: bold; color: white; width: 120}&quot; NAME='goPin' id='goPin' VALUE='Parcel ID         ' OnClick=&quot;document.forms.searchbypin.pin.focus();&quot;>
<INPUT TYPE=button STYLE=&quot;{background-color: blue; font-weight: bold; color: white; width: 120}&quot; NAME='goOwner' id='goOwner' VALUE='Owner             ' OnClick=&quot;document.forms.searchbyowner.Owner.focus();&quot;>
<INPUT TYPE=button STYLE=&quot;{background-color: blue; font-weight: bold; color: white; width: 120}&quot; NAME='goAddress' id='goAddress' VALUE='Address          ' OnClick=&quot;document.forms.searchbyadd.num.focus();&quot;>
<BR><BR><center><b>Functions:</b></center>
<INPUT TYPE=button STYLE=&quot;{background-color: blue; font-weight: bold; color: white; width: 120}&quot; NAME='cmdRefresh' id='cmdRefresh' VALUE='Show Legend...' OnClick=&quot;showNewLegendWindow();&quot;>
<INPUT TYPE=BUTTON STYLE=&quot;{background-color: blue; font-weight: bold; color: white; width: 120}&quot; NAME=SENDMAIL ID=SENDMAIL VALUE='EMail this map ' OnClick=&quot;location.href='[URL unfurl="true"]HTTP://10.1.1.126/mailform.asp?name=Columbia&amp;cmd=refresh&amp;ReDoPin=001%[/URL]

20002&amp;Tax_Parcels=ON&amp;Map_Grid=ON&amp;Streets=ON&amp;Schools=OFF&amp;Sewer_Lines=OFF
&amp;Detention_Ponds=OFF
&amp;Easements=OFF&amp;Elevations_Twenty_Five_Foot=OFF&amp;Elevations_Five_Foot=OFF
&amp;Elevation_Text=OFF&amp;Electronic_Towers=OFF&amp;Water_Towers=OFF&amp;Water_Lines=OFF
&amp;RailRoads=OFF
&amp;Buildings=OFF&amp;FEMA_Firm=OFF&amp;Police_Beats=OFF&amp;Wetlands=OFF&amp;Lakes=OFF
&amp;Streams=OFF
&amp;Zoning=OFF&amp;Fire_Districts=OFF&amp;Drainage_Basins=OFF&amp;Primary_Roads=OFF
&amp;City_Limits=OFF&amp;County_Boundary=OFF&amp;Right=586834.666696382&amp;LEFT=
580901.330048382&amp;TOP=1332871.50832358&amp;BOTTOM=1327747.05124566'&quot;>

<BR><BR><BR><BR>
<center><IMG SRC='/scratch/Map210_7_4413.jpg' ALT='Location Map' BORDER='2'></center>
<INPUT TYPE=hidden NAME='Tax_Parcels' value='ON'>
<INPUT TYPE=hidden NAME='Map_Grid' value='ON'>
<INPUT TYPE=hidden NAME='Streets' value='ON'>
<INPUT TYPE=hidden NAME='Schools' value='OFF'>
<INPUT TYPE=hidden NAME='Sewer_Lines' value='OFF'>
<INPUT TYPE=hidden NAME='Detention_Ponds' value='OFF'>
<INPUT TYPE=hidden NAME='Easements' value='OFF'>
<INPUT TYPE=hidden NAME='Elevations_Twenty_Five_Foot' value='OFF'>
<INPUT TYPE=hidden NAME='Elevations_Five_Foot' value='OFF'>
<INPUT TYPE=hidden NAME='Elevation_Text' value='OFF'>
<INPUT TYPE=hidden NAME='Electronic_Towers' value='OFF'>
<INPUT TYPE=hidden NAME='Water_Towers' value='OFF'>
<INPUT TYPE=hidden NAME='Water_Lines' value='OFF'>
<INPUT TYPE=hidden NAME='RailRoads' value='OFF'>
<INPUT TYPE=hidden NAME='Buildings' value='OFF'>
<INPUT TYPE=hidden NAME='FEMA_Firm' value='OFF'>
<INPUT TYPE=hidden NAME='Police_Beats' value='OFF'>
<INPUT TYPE=hidden NAME='Wetlands' value='OFF'>
<INPUT TYPE=hidden NAME='Lakes' value='OFF'>
<INPUT TYPE=hidden NAME='Streams' value='OFF'>
<INPUT TYPE=hidden NAME='Zoning' value='OFF'>
<INPUT TYPE=hidden NAME='Fire_Districts' value='OFF'>
<INPUT TYPE=hidden NAME='Drainage_Basins' value='OFF'>
<INPUT TYPE=hidden NAME='Primary_Roads' value='OFF'>
<INPUT TYPE=hidden NAME='City_Limits' value='OFF'>
<INPUT TYPE=hidden NAME='County_Boundary' value='OFF'>

</TD>
<td valign='middle' align='center' width='75'><a href='[URL unfurl="true"]http://10.1.1.126/scripts/esrimap.dll?name=Columbia&amp;cmd=NWest&amp;ReDoPin=001%[/URL]

20002&amp;Tax_Parcels=ON&amp;Map_Grid=ON&amp;Streets=ON&amp;Schools=OFF&amp;Sewer_Lines=OFF
&amp;Detention_Ponds=OFF&amp;Easements=OFF&amp;Elevations_Twenty_Five_Foot=OFF
&amp;Elevations_Five_Foot=OFF&amp;Elevation_Text=OFF&amp;Electronic_Towers=OFF
&amp;Water_Towers=OFF&amp;Water_Lines=OFF&amp;RailRoads=OFF&amp;Buildings=OFF&amp;FEMA_Firm=OFF
&amp;Police_Beats=OFF&amp;Wetlands=OFF&amp;Lakes=OFF&amp;Streams=OFF&amp;Zoning=OFF&amp;Fire_Districts=OFF
&amp;Drainage_Basins=OFF&amp;Primary_Roads=OFF&amp;City_Limits=OFF&amp;County_Boundary=OFF
&amp;Right=586834.666696382&amp;LEFT=580901.330048382&amp;TOP=1332871.50832358&amp;
BOTTOM=1327747.05124566'><IMG SRC='/IMAGES/NW.GIF' BORDER='0' ALT='Pan NorthWestward'></a></td>
<td valign='middle' align='center' width='300'><a href='[URL unfurl="true"]http://10.1.1.126/scripts/esrimap.dll?name=Columbia&amp;cmd=North&amp;ReDoPin=001%[/URL]

20002&amp;Tax_Parcels=ON&amp;Map_Grid=ON&amp;Streets=ON&amp;Schools=OFF&amp;Sewer_Lines=OFF
&amp;Detention_Ponds=OFF&amp;Easements=OFF&amp;Elevations_Twenty_Five_Foot=OFF
&amp;Elevations_Five_Foot=OFF&amp;Elevation_Text=OFF&amp;Electronic_Towers=OFF
&amp;Water_Towers=OFF&amp;Water_Lines=OFF&amp;RailRoads=OFF&amp;Buildings=OFF&amp;FEMA_Firm=OFF
&amp;Police_Beats=OFF&amp;Wetlands=OFF&amp;Lakes=OFF&amp;Streams=OFF&amp;Zoning=OFF
&amp;Fire_Districts=OFF&amp;Drainage_Basins=OFF&amp;Primary_Roads=OFF&amp;City_Limits=OFF
&amp;County_Boundary=OFF&amp;Right=586834.666696382&amp;LEFT=580901.330048382&amp;TOP
=1332871.50832358&amp;BOTTOM=1327747.05124566'><IMG SRC=
'/IMAGES/NORTH.GIF' BORDER='0' ALT='Pan Northward'></a></td>
<td valign
='middle' align='center' width='75'><a href='[URL unfurl="true"]http://10.1.1.126/scripts/esrimap.dll?name=Columbia&amp;cmd=NEast&amp;ReDoPin=001%[/URL]

20002&amp;Tax_Parcels=ON&amp;Map_Grid=ON&amp;Streets=ON&amp;Schools=OFF&amp;Sewer_Lines=OFF
&amp;Detention_Ponds=OFF&amp;Easements=OFF&amp;Elevations_Twenty_Five_Foot=OFF
&amp;Elevations_Five_Foot=OFF&amp;Elevation_Text=OFF&amp;Electronic_Towers=OFF
&amp;Water_Towers=OFF&amp;Water_Lines=OFF&amp;RailRoads=OFF&amp;Buildings=OFF&amp;FEMA_Firm=OFF
&amp;Police_Beats=OFF&amp;Wetlands=OFF&amp;Lakes=OFF&amp;Streams=OFF&amp;Zoning=OFF
&amp;Fire_Districts=OFF&amp;Drainage_Basins=OFF&amp;Primary_Roads=OFF&amp;City_Limits=OFF
&amp;County_Boundary=OFF&amp;Right=586834.666696382&amp;LEFT=580901.330048382&amp;TOP
=1332871.50832358&amp;BOTTOM=1327747.05124566'><IMG SRC=
'/IMAGES/NE.GIF' BORDER='0' ALT='Pan NorthEastward'></a></td></tr>
<tr><td align='center' valign='middle' width='75'><a href='[URL unfurl="true"]http://10.1.1.126/scripts/esrimap.dll?name=Columbia&amp;cmd=West&amp;ReDoPin=001%[/URL]

20002&amp;Tax_Parcels=ON&amp;Map_Grid=ON&amp;Streets=ON&amp;Schools=OFF&amp;Sewer_Lines=OFF
&amp;Detention_Ponds=OFF&amp;Easements=OFF&amp;Elevations_Twenty_Five_Foot=OFF
&amp;Elevations_Five_Foot=OFF&amp;Elevation_Text=OFF&amp;Electronic_Towers=OFF
&amp;Water_Towers=OFF&amp;Water_Lines=OFF&amp;RailRoads=OFF&amp;Buildings=OFF&amp;FEMA_Firm=OFF
&amp;Police_Beats=OFF&amp;Wetlands=OFF&amp;Lakes=OFF&amp;Streams=OFF&amp;Zoning=OFF
&amp;Fire_Districts=OFF&amp;Drainage_Basins=OFF&amp;Primary_Roads=OFF&amp;City_Limits=OFF
&amp;County_Boundary=OFF&amp;Right=586834.666696382&amp;LEFT=580901.330048382&amp;TOP
=1332871.50832358&amp;BOTTOM=1327747.05124566'><IMG SRC='/IMAGES/WEST.GIF' BORDER='0' ALT='Pan Westward'></a></td>
<td bgcolor='black' width='300' align='center' valign='middle'><INPUT TYPE='IMAGE' NAME='click' id='click' SRC='/scratch/Map110_7_4313.jpg' ALT='Columbia County Georgia' BORDER='2'></td>
<td  align='center' valign='middle' width='75'><a href='[URL unfurl="true"]http://10.1.1.126/scripts/esrimap.dll?name=Columbia&amp;cmd=East&amp;ReDoPin=001%[/URL]

20002&amp;Tax_Parcels=ON&amp;Map_Grid=ON&amp;Streets=ON&amp;Schools=OFF&amp;Sewer_Lines=OFF
&amp;Detention_Ponds=OFF&amp;Easements=OFF&amp;Elevations_Twenty_Five_Foot=OFF
&amp;Elevations_Five_Foot=OFF&amp;Elevation_Text=OFF&amp;Electronic_Towers=OFF
&amp;Water_Towers=OFF&amp;Water_Lines=OFF&amp;RailRoads=OFF&amp;Buildings=OFF&amp;FEMA_Firm=OFF
&amp;Police_Beats=OFF&amp;Wetlands=OFF&amp;Lakes=OFF&amp;Streams=OFF&amp;Zoning=OFF
&amp;Fire_Districts=OFF&amp;Drainage_Basins=OFF&amp;Primary_Roads=OFF&amp;City_Limits=OFF
&amp;County_Boundary=OFF&amp;Right=586834.666696382&amp;LEFT=580901.330048382&amp;TOP
=1332871.50832358&amp;BOTTOM=1327747.05124566'><IMG SRC='/IMAGES/EAST.GIF' BORDER='0' ALT='Pan Easthward'></a></td></tr>
<tr><td valign='middle' align='center' width='75'><a href='[URL unfurl="true"]http://10.1.1.126/scripts/esrimap.dll?name=Columbia&amp;cmd=SWest&amp;ReDoPin=001%[/URL]

20002&amp;Tax_Parcels=ON&amp;Map_Grid=ON&amp;Streets=ON&amp;Schools=OFF&amp;Sewer_Lines=OFF
&amp;Detention_Ponds=OFF&amp;Easements=OFF&amp;Elevations_Twenty_Five_Foot=OFF
&amp;Elevations_Five_Foot=OFF&amp;Elevation_Text=OFF&amp;Electronic_Towers=OFF
&amp;Water_Towers=OFF&amp;Water_Lines=OFF&amp;RailRoads=OFF&amp;Buildings=OFF&amp;FEMA_Firm=OFF
&amp;Police_Beats=OFF&amp;Wetlands=OFF&amp;Lakes=OFF&amp;Streams=OFF&amp;Zoning=OFF
&amp;Fire_Districts=OFF&amp;Drainage_Basins=OFF&amp;Primary_Roads=OFF&amp;City_Limits=OFF
&amp;County_Boundary=OFF&amp;Right=586834.666696382&amp;LEFT=580901.330048382&amp;TOP
=1332871.50832358&amp;BOTTOM=1327747.05124566'><IMG SRC='/IMAGES/SW.GIF' BORDER='0' ALT='Pan SouthWestward'></a></td>
<td align='center' valign='middle' width='300'><a href='[URL unfurl="true"]http://10.1.1.126/scripts/esrimap.dll?name=Columbia&amp;cmd=South&amp;ReDoPin=001%[/URL]

20002&amp;Tax_Parcels=ON&amp;Map_Grid=ON&amp;Streets=ON&amp;Schools=OFF&amp;Sewer_Lines=OFF
&amp;Detention_Ponds=OFF&amp;Easements=OFF&amp;Elevations_Twenty_Five_Foot=OFF
&amp;Elevations_Five_Foot=OFF&amp;Elevation_Text=OFF&amp;Electronic_Towers=OFF
&amp;Water_Towers=OFF&amp;Water_Lines=OFF&amp;RailRoads=OFF&amp;Buildings=OFF&amp;FEMA_Firm=OFF
&amp;Police_Beats=OFF&amp;Wetlands=OFF&amp;Lakes=OFF&amp;Streams=OFF&amp;Zoning=OFF
&amp;Fire_Districts=OFF&amp;Drainage_Basins=OFF&amp;Primary_Roads=OFF&amp;City_Limits=OFF
&amp;County_Boundary=OFF&amp;Right=586834.666696382&amp;LEFT=580901.330048382&amp;TOP
=1332871.50832358&amp;BOTTOM=1327747.05124566'><IMG SRC='/IMAGES/SOUTH.GIF' BORDER='0' ALT='Pan Southward'></a></td>
<td valign='middle' align='center' width='75'><a href='[URL unfurl="true"]http://10.1.1.126/scripts/esrimap.dll?name=Columbia&amp;cmd=SEast&amp;ReDoPin=001%[/URL]

20002&amp;Tax_Parcels=ON&amp;Map_Grid=ON&amp;Streets=ON&amp;Schools=OFF&amp;Sewer_Lines=OFF
&amp;Detention_Ponds=OFF&amp;Easements=OFF&amp;Elevations_Twenty_Five_Foot=OFF
&amp;Elevations_Five_Foot=OFF&amp;Elevation_Text=OFF&amp;Electronic_Towers=OFF
&amp;Water_Towers=OFF&amp;Water_Lines=OFF&amp;RailRoads=OFF&amp;Buildings=OFF&amp;FEMA_Firm=OFF
&amp;Police_Beats=OFF&amp;Wetlands=OFF&amp;Lakes=OFF&amp;Streams=OFF&amp;Zoning=OFF
&amp;Fire_Districts=OFF&amp;Drainage_Basins=OFF&amp;Primary_Roads=OFF&amp;City_Limits=OFF
&amp;County_Boundary=OFF&amp;Right=586834.666696382&amp;LEFT=580901.330048382&amp;TOP
=1332871.50832358&amp;BOTTOM=1327747.05124566'><IMG SRC='/IMAGES/SE.GIF' BORDER='0' ALT='Pan SouthEastward'></a></td></tr>
<tr><td colspan='3' align=center valign='middle' width='450'><a href='[URL unfurl="true"]http://10.1.1.126/scripts/esrimap.dll?name=Columbia&amp;cmd=fullextent&amp;ReDoPin=001%[/URL]

20002&amp;Tax_Parcels=ON&amp;Map_Grid=ON&amp;Streets=ON&amp;Schools=OFF&amp;Sewer_Lines=OFF
&amp;Detention_Ponds=OFF&amp;Easements=OFF&amp;Elevations_Twenty_Five_Foot=OFF
&amp;Elevations_Five_Foot=OFF&amp;Elevation_Text=OFF&amp;Electronic_Towers=OFF
&amp;Water_Towers=OFF&amp;Water_Lines=OFF&amp;RailRoads=OFF&amp;Buildings=OFF&amp;FEMA_Firm=OFF
&amp;Police_Beats=OFF&amp;Wetlands=OFF&amp;Lakes=OFF&amp;Streams=OFF&amp;Zoning=OFF
&amp;Fire_Districts=OFF&amp;Drainage_Basins=OFF&amp;Primary_Roads=OFF&amp;City_Limits=OFF
&amp;County_Boundary=OFF'><IMG SRC='/IMAGES/FULLEXT.GIF' BORDER='0' ALT='Full Extent'></a></td></tr>
</TABLE>
</FORM>
chrisquick@aol.com
Geographic Information System (GIS), ASP, some Oracle
 
Not easy to read !
Please check, whether all TD-widths sum up to
the table width 640.
G.Hoffmann
 
I have not read the code exactly, but maybe your images which you put in a cell are too great. Use width also for your images en use <BR> tags for the next sentence.
You can also try to make 1 extra row in the top of te table
where you put the next code: <TD colspan=x><IMG src=&quot;image.gif&quot; width=&quot;640&quot;></TD>,
Image.gif must be a one pixel image.
x must be as great as the number of collumns you table have.
Try it is an old dreamweaver/fireworks trick. Maybe it solve the problem.

Qwark.
 
Netscape does some weird stuff. Particularly with inconsistencies in table display compared to the definition. First, be sure all of your widths add up, as suggested before. The one-pixel gif trick is good too, but probably won't shrink a table that is too big, but usually works to grow a table that is too small. Make sure that you don't have anything which is larger than the cell it occupies, or the cell will grow. Since it works in IE, I doubt this is the case.

Also, remember that a newline is a space in html so this:

<table>
<tr>
<td>
<content>
</td>
</tr>
</table>

is not the same thing as this:

<table><tr><td><content></td></tr></td>

However, the following is the same as this:

<table>
<tr>
<td
><content
></td>
</tr>
</table>

Since the newlines inside the tags are ignored, however newlines between tags are rendered as spaces.

One other thing which has actually worked for me in the past(which seems strange, but its worth a try) is to delete some of your size definitions where they aren't necessary, eg, change this:

<table width=&quot;640&quot; height=&quot;480&quot;>
<tr width=&quot;640&quot; height=&quot;480&quot;>
<td width=&quot;640&quot; height=&quot;480&quot;>
<content></td></tr></table>

to this:

<table width=&quot;640&quot;><tr><td>
<content></td></tr></table>

It sometimes falls into place more easily, I guess because there may have been some sort of logic error in the table rendering routine which is bypassed by reducing the number of variables it deals with. Try taking out specified widths and heights wherever they are not critically needed.

The only other suggestion is to rearrange the way your tables are laid out and see if NS likes the new layout better.

I hope this helps you.
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
Might seem silly, but have you tried swapping the order of the tables? This may isolate whether this is a problem of multiple tables or a problem with a particular table (I have encountered a similar problem concerning page links). hmmm interesting.
 
if you fill the empty table cells with a transparent gif it will fix the problem in netscape. I use a 1x1 transparent gif and resize it to fit the cell. Hope this helps
 
velocity, that won't shrink a cell that is artificially inflated. It will only expand a cell that is artificially deflated. The question states that one of the cells is too big, not too small.
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 

Oddly enough I had the same problem and a friend suggested cutting up a ruler and putting appropriately sized bits into each cell as a diagnostic tool, so you could see which bits were wider than they should be.

It solved it.

so I did that one pixel trick and resized them and now it looks great in Netscape.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top