Table not collapsing....
Enverex
Worcester, UK Icrontian
Ok, I know XHTML isn't really a programming language, but it's close enough.
Trying to rewrite my site so that it stops growing at a certain size, and it is all fine, apart from the news on the front page. For some reason, this small table (which is used to format the news and image etc) isn't collapsing, causing the page to be stock at 1250px width. It breaks down in Mozilla but no IE.
The Code is-
[php]<table border=\"0\" style=\"border-collapse: collapse;\">
<tr>
<td style=\"border-collapse: collapse; background-image: url('http://atomnet.co.uk/dl?ss=newsbar')\"><div class=\"newstitle\">$Date -::- $Title</div></td>
<td align=\"right\" style=\"border-collapse: collapse; background-image: url('http://atomnet.co.uk/dl?ss=newsbar')\"><div class=\"newstitle\">$Poster</div></td>
</tr>
<tr>
<td width=\"100%\" colspan=\"2\" style=\"border-collapse: collapse;\">
<img style=\"Margin-top: 15px; Margin-bottom: 8px; Margin-right: 13px; Margin-left: 7px; BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid\"
height=\"75\" hspace=\"0\" src=\"/dl?newsi=newsthumb$id\" width=\"85\" border=\"0\" align=\"left\" alt=\"$Title\" />
<div style=\"color: #DCDCDC; font: 8pt Verdana; margin: 2px 0px 0px 14px;\">$NewsBody</div></td>
</tr>
<tr>
<td style=\"border-collapse: collapse;\"></td>
<td align=\"right\" style=\"border-collapse: collapse;\"><a href=\"#Top\"><img style=\"border: 1px solid #110055;\" src=\"/dl?newsi=top\" alt=\"Back to Top\" /></a></td>
</tr>
</table>[/php]
Any idea what I am missing? As the rest of the page breaks down fine..... just not this.
Trying to rewrite my site so that it stops growing at a certain size, and it is all fine, apart from the news on the front page. For some reason, this small table (which is used to format the news and image etc) isn't collapsing, causing the page to be stock at 1250px width. It breaks down in Mozilla but no IE.
The Code is-
[php]<table border=\"0\" style=\"border-collapse: collapse;\">
<tr>
<td style=\"border-collapse: collapse; background-image: url('http://atomnet.co.uk/dl?ss=newsbar')\"><div class=\"newstitle\">$Date -::- $Title</div></td>
<td align=\"right\" style=\"border-collapse: collapse; background-image: url('http://atomnet.co.uk/dl?ss=newsbar')\"><div class=\"newstitle\">$Poster</div></td>
</tr>
<tr>
<td width=\"100%\" colspan=\"2\" style=\"border-collapse: collapse;\">
<img style=\"Margin-top: 15px; Margin-bottom: 8px; Margin-right: 13px; Margin-left: 7px; BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid\"
height=\"75\" hspace=\"0\" src=\"/dl?newsi=newsthumb$id\" width=\"85\" border=\"0\" align=\"left\" alt=\"$Title\" />
<div style=\"color: #DCDCDC; font: 8pt Verdana; margin: 2px 0px 0px 14px;\">$NewsBody</div></td>
</tr>
<tr>
<td style=\"border-collapse: collapse;\"></td>
<td align=\"right\" style=\"border-collapse: collapse;\"><a href=\"#Top\"><img style=\"border: 1px solid #110055;\" src=\"/dl?newsi=top\" alt=\"Back to Top\" /></a></td>
</tr>
</table>[/php]
Any idea what I am missing? As the rest of the page breaks down fine..... just not this.
0
Comments
ASP live gens tables in server, what is fed is a static output from an ASP function set.
For IE, server gets to calc table, and then feed a static result, or invoke active-X client side (and feed it first if special function set). Microsoft took the route of making this a server function. Server calcs page, then feeds a static table. Table is calced based on client request input.
So, the collapse is not supported in IE as it stands now. That is bottom line.
That is also why sites that truely want to have apparent collapses instead regen table for IE clients and feed it as a static result. IE can regen areas based on layering,but Netscape does not layer well, so in many cases either a choice is made to not support IE and support mozilla type or to branch how server gens and feeds active live data by browser. They discriminate by browser detection and then alternate response based on browser, and most folks do not grok this well.
I know, this stinks, but it is reality.... This site works by gening static resends for end to browser on client, for IE browsers or those pretending to be such like Opera-- essentially PHP lets a teble be appended to on server, and then browser in essence repaints the appended result as a static thing if it emulates IE real well. I get a different look and feel out of Opera than in IE, and different feel in Windows in Opera as to fine spacing and fine actions than I do in Opera in Linux. Overall behavior as above is why.
John D.
You seem to be missing the point. Every other table on the page breaks down, just not that small one on the news page.
Right, open these two pages in IE -
http://atomnet.co.uk
and
http://atomnet.co.uk/amiga/?p=engine&letter=p
Both of those are full of tables. Page B collapses perfectly, where are page A, doesn't (try resizing the browser to about 800px wide or so).
Note your table cell is 820 pixels wide literally, then you continue with tables in cells stated as 100% width. 100% of 820 is 820. Change the top 820 to 100% and 100% of center remaining space will be used to calc width.
[php]
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="80%" style=
"background: url('/ss/backdropblue.gif'); padding-left: 2px; padding-right: 2px; Border: 1px solid #000; border-collapse: collapse; margin-left: 0px; margin-right: 0px; margin-top: 0px; margin-bottom: 0px;">
<center><br />
<font face="Arial" size="1" color="#B0B0B0"><a id='Top'>Welcome to
the Atomic Cabbage Network (Atomnet). Facilities are to the
right.</a><br />
Page is best viewed at</font> <font face="Arial" size="1" color=
"#FFA500">1024-768@32bit</font> <font face="Arial" size="1" color=
"#B0B0B0">using Mozilla or compatable<br />
and while you are here it would be nice if you would sign the
<a href="/guestbook">guestbook</a> to say you visited,
thanks<br /></font> <img src="/dl?ss=spacer" height="10" alt=
"Spacer" /></center>
<br /></td></tr></table>]
[/php]
Do you really want a table inside a CELL, which is what not closing cell pair will give and force the top cell explicit width def to be in use for any tables inside it.
Center table not width collapsing as the top cell is fixed width and you tabled inside it.
----Edited by Necropolis_uk
Ageek I have added PHP tags as it screws the layout of the page up.
End Edit
-- Editted by Ageek--
Now that I know the syntax for a php square bracket tag, I will.... I know HTML but not php.... Looked at source in editor here to see what syntax was. SORRY!
End Edit--
That doesn't matter. The size is the tables MAXIMUM size. When collapse is specified, it will shrink down if it needs to. Also, both pages specify that the same way and it is still only the other than fails.
I have already broken this down and the table I pasted IS the problem. Stop trying to look for other issues as there aren't any. If I remove that block of code that I pasted initially, it all breaks down fine. With it in, the page is locked.
As I already stated, ALL the pages work, EXCEPT the first page and they ALL specify 820px.
I am on the XP box, posting from within IE.
John.
[php]<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Language" content="en-gb" />
<link rel="SHORTCUT ICON" href="http://atomnet.co.uk/favicon.ico" />
<meta http-equiv="Keywords" content="Atomic, Cabbage, AtomicCabbage, Atomic Cabbage, Atomnet, Amiga, ADF, Enverex, NightShade737" />
<title>:: Atomic Cabbage :: The scroll, The Scroll, The Buttons, The Buttons, scrolling so smooth like the butter on the muffins.</title>
<link rel="stylesheet" href="/fullpagesettings.css" type="text/css" />
</head>
<?php define("ac", '/usr/http/ac/'); ?>
<body>
<table align="center" border="0" style="border-collapse: collapse;">
<tr>
<td colspan="80" height="80" style="border-collapse: collapse; margin-left: 0px; margin-right: 0px; margin-top: 0px; margin-bottom: 0px;">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; Border: 1px solid #000;" bgcolor="#000000" width="100%"><tr><td>
<a href="http://atomnet.co.uk" target="_top"><img src="http://atomnet.co.uk/dl?ss=mainlogo.jpg" alt="Atomic Cabbage Network Logo" border="0" /></a></td><td>
<img border="0" src="http://atomnet.co.uk/dl?ss=sarc.jpg" align="right" alt="Free of charge..." /></td></tr></table>
</td>
</tr>
<tr>
<td height="6">
</td>
</tr>
<tr>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" style="border-collapse: collapse; Border: 1px solid #000; margin-left: 0px; margin-right: 0px; margin-top: 0px; margin-bottom: 0px; background-image: url('/ss/backdropblue.gif');">
<script language="javascript" type="text/javascript">
function openpopup(url,param){var page = window.open(url,'_blank',param);}
</script>
<?php
if(isset($_POST)){
$name = $_POST;
$text = $_POST;
if($text != 'Type your blog here and then press submit! Max: 90 Chars' && $text != '' && $name != '' && $name != 'Name')
{
mysql_connect('localhost');
@mysql_select_db('site');
$query="INSERT INTO miniblog (
name,
text)
VALUES(
'".$name."',
'".$text."')";
mysql_query($query);
};}
?>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; margin-right: -1px;">
<tr>
<td align="left" valign="top" width="136">
<table border="0" cellspacing="0" width="100%" style="border-collapse: collapse; border: 1px solid #000" cellpadding="0">
<tr>
<td bgcolor="#00002F" height="15">
<b><font face="Arial" color="#FF6600" size="2">S</font><font face="Arial" color="#FF6600" size="1">ectors:-</font></b>
</td>
</tr>
</table>
<table border="1" cellspacing="0" width="100%" style="border-collapse: collapse; background-image: url('/ss/blueback2.gif'); border: 1px solid #000" cellpadding="0">
<tr>
<td style="border: 1px solid #000">
<a style="text-decoration: none" href="/index.php">
<font face="Arial" size="1" color="#FFFFFF">- HOME</font></a></td>
</tr>
<tr>
<td style="border: 1px solid #000">
<a style="text-decoration: none" href="/amiga/">
<font face="Arial" size="1" color="#FFFFFF">- AMIGA</font></a></td>
</tr>
<tr>
<td style="border: 1px solid #000">
<a style="text-decoration: none" href="/?p=reviews">
<font face="Arial" size="1" color="#FFFFFF">- REVIEWS</font></a></td>
</tr>
<tr>
<td style="border: 1px solid #000">
<a style="text-decoration: none" href="/?p=guides">
<font face="Arial" size="1" color="#FFFFFF">- GUIDES</font></a></td>
</tr>
<tr>
<td style="border: 1px solid #000">
<a style="text-decoration: none" href="/protection/">
<font face="Arial" size="1" color="#FFFFFF">- PROTECTION</font></a></td>
</tr>
</table>
<?php include("exnav.inc") ?>
<table border="0" cellspacing="0" width="100%" style="border-collapse: collapse; border: 1px solid #000" cellpadding="0">
<tr>
<td bgcolor="#00002F" height="15">
<b><font face="Arial" color="#FF6600" size="2">C</font><font face="Arial" color="#FF6600" size="1">ommunity:-</font></b></td>
</tr>
</table>
<table border="1" cellspacing="0" width="100%" style="border-collapse: collapse; background-image: url('/ss/greyback.gif'); border: 1px solid #000" cellpadding="0">
<tr>
<td style="border: 1px solid #000">
<a style="text-decoration: none" href="irc://irc.atomnet.co.uk/ac">
<font face="Arial" size="1" color="#FFFFFF">- IRC (Chatroom)</font></a></td>
</tr>
<tr>
<td style="border: 1px solid #000">
<a style="text-decoration: none" href="javascript:openpopup('/guestbook/','height=600, width=800,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no')">
<font face="Arial" size="1" color="#FFFFFF">- GUESTBOOK</font></a></td>
</tr>
<tr>
<td style="border: 1px solid #000">
<a style="text-decoration: none" href="http://forum.atomnet.co.uk">
<font face="Arial" size="1" color="#FFFFFF">- FORUM</font></a></td>
</tr>
</table>
<br />
<table border="1" cellspacing="0" width="100%" bgcolor="#00002F" style="border-collapse: collapse; border: 1px solid #000" cellpadding="0">
<tr>
<td height="15">
<b><font face="Arial" color="#FF6600" size="2">V</font><font face="Arial" size="1" color="#FF6600">isitor Blog:-</font></b>
</td>
</tr>
</table>
<table border="0" width="100%" cellpadding="0" cellspacing="0" style="background-image:url('/ss/blueback.gif');"><tr><td align="center">
<?php $self = $_SERVER; echo "<form method=\"post\" action=\"$self\">"; ?>
<input class="textbox" maxlength="24" type="text" name="name" value="Name" onfocus="if(this.value=='Name'){this.value='';}" onblur="if(this.value==''){this.value='Name';}" /><br />
<textarea class="textarea" rows="5" cols="4" name="text" onfocus="if(this.value=='Type your blog here and then press submit! Max: 90 Chars'){this.value='';}" onblur="if(this.value==''){this.value='Type your blog here and then press submit! Max: 90 Chars';}">Type your blog here and then press submit! Max: 90 Chars</textarea><br />
<center><input class="button" type="submit" value="Submit" name="submit" />
<input class="button" type="reset" value="Clear" name="reset" /></center></form></td></tr>
<tr><td style="border-top: 1px SOLID #000; border-bottom: 1px SOLID #000; background-image:url('/ss/blueback2.gif');">
<?php
mysql_connect('127.0.0.1');
mysql_select_db("site");
$SQL ="SELECT * FROM `miniblog` ORDER BY 'id' DESC LIMIT 7";
$Result=mysql_query($SQL);
$SQL_Result=mysql_db_query('site', $SQL);
$Rows=mysql_num_rows($SQL_Result);
for ($a=0; $a < $Rows; $a++)
{
$Array = mysql_fetch_array($Result);
$name = ucwords($Array);
$text = $Array;
$text = str_replace(':)', '<img src="/ss/smilies/smile.gif" alt="Smile" />', $text);
$text = str_replace(';)', '<img src="/ss/smilies/wink.gif" alt="Wink" />', $text);
$text = str_replace('; )', '<img src="/ss/smilies/wink.gif" alt="Wink" />', $text);
$text = str_replace('>(', '<img src="/ss/smilies/mad.gif" alt="Mad" />', $text);
$text = str_replace(';[', '<img src="/ss/smilies/uttersillyness.gif" alt="Utter Silliness" />', $text);
$text = str_replace('', '<img src="/ss/smilies/laugh2.gif" alt="Laughing" />', $text);
$text = str_replace(':er:', '<img src="/ss/smilies/er.gif" alt="Er..." />', $text);
$text = str_replace('^_^', '<img src="/ss/smilies/icon_smile_sleepy.gif" alt="KeKeKe" />', $text);
echo "<div class=\"normbodtb\"><img src=\"/ss/smilies/icons/attention.gif\" alt=\"Note\" /> <strong>$name</strong><br />
$text<br /><img src=\"/ss/spacer.gif\" alt=\"Spacer\" height=\"5\" /><br /></div>";};
mysql_close(mysql_connect('127.0.0.1'));
?>
</td></tr></table>
<br />
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="6">
</td>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse;">
<tr>
<td valign="top" width="820" style="background: url('/ss/backdropblue.gif'); padding-left: 2px; padding-right: 2px; Border: 1px solid #000; border-collapse: collapse; margin-left: 0px; margin-right: 0px; margin-top: 0px; margin-bottom: 0px;">
<?php
if ( !isset($_GET) ){ $p = "home";}
else { $p = $_GET; } if (!file_exists($p.".php")) $p = ac."ss/error/error"; include($p.".php"); ?>
<br />
</td>
</tr>
<tr>
<td height="8">
</td>
</tr>
<tr>
<td style="background: url('/ss/whitepaper.jpg'); border: 1px solid #000;">
<table border="0" width="100%" cellpadding="0" cellspacing="0" style="border-collapse: collapse">
<tr>
<td align="center" width="125">
<?php
$fp=fopen(ac."php/counter/acc.txt","r");
$count=fgets($fp,1024);
fclose($fp);
$fw=fopen(ac."php/counter/acc.txt","w");
$cnew=$count+1;
$countnew=fputs($fw,$count+1);
echo "<b>..:|$cnew|:..</b>";
fclose($fw);
?>
</td>
<td align="left">
<font size="1" color="#000080" face="Arial">All Pages & Images Copyright © Their Respective Owners unless
otherwise stated. <br />All other images copyright ACSoft 2003</font></td>
<td width="180" colspan="2" align="right" height="42"><img style="margin-left: 7px; margin-top: 2px" src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" /><img style="margin-right: -3px;" src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSSv2" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="6">
</td>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" width="131" style="background-image: url('/ss/backdropblue.gif'); border-collapse: collapse; Border: 1px solid #000; margin-left: 0px; margin-right: 0px; margin-top: 0px; margin-bottom: 0px;">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse">
<tr>
<td align="left" valign="top">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse">
<tr>
<td align="left" valign="top" width="132">
<table border="0" cellspacing="0" width="100%" bgcolor="#660066" style="border-collapse: collapse; border: 1px solid #000" cellpadding="0">
<tr>
<td bgcolor="#00002F" height="19">
<b><font face="Arial" size="2" color="#FF6600">R</font><font face="Arial" size="1" color="#FF6600">andom Funneh:-</font></b></td>
</tr>
<tr>
<td bgcolor="#273050">
<?php
mysql_connect('127.0.0.1');
mysql_select_db("site");
$SQL ="SELECT * FROM `toprightimg` ORDER BY RAND() LIMIT 0,1";
$Result=mysql_query($SQL);
$Array = mysql_fetch_array($Result);
$id=$Array;
$name=$Array;
echo "<img style=\"border-bottom: 1px #000 solid; border-top: 1px #000 solid\" width=\"130px\" src=\"/ss/toprightimg/$id\" alt=\"$name\" />";
mysql_close(mysql_connect('127.0.0.1'));
?>
</td>
</tr>
</table>
<br />
<table border="0" cellspacing="0" width="100%" style="border-collapse: collapse; background-image: url('/ss/purpleback.gif'); border: 1px solid #000" cellpadding="0">
<tr>
<td bgcolor="#00002F" height="15">
<b><font face="arial" size="2" color="#FF6600">Q</font><font face="arial" size="1" color="#FF6600">uote of The Day:-</font></b></td>
</tr>
<tr>
<td>
<?php
mysql_connect('127.0.0.1');
mysql_select_db("site");
$SQL ="SELECT Quote FROM `qotd` ORDER BY RAND() LIMIT 0,1";
$Result=mysql_query($SQL);
$Array = mysql_fetch_array($Result);
$Quote=$Array;
echo "<center><div class=\"quote\">$Quote</div></center>";
mysql_close(mysql_connect('127.0.0.1'));
?>
</td>
</tr>
</table>
<br />
<table border="0" cellspacing="0" width="100%" bgcolor="#660066" style="border-collapse: collapse; border: 1px solid #000" cellpadding="0">
<tr>
<td bgcolor="#00002F" height="15">
<b><font face="Arial" size="2" color="#FF6600">W</font><font face="Arial" size="1" color="#FF6600">ebmail:-</font></b></td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" cellspacing="0" width="100%" style="border-collapse: collapse; border: 1px solid #000; background-image: url('/ss/greenback.gif')" cellpadding="0">
<tr>
<td style="border: 1px solid #000">
<a style="text-decoration: none" href="http://mail.atomnet.co.uk">
<font face="Arial" size="1" color="#FFFFFF">- WEBMAIL LOGIN</font></a></td>
</tr>
<tr>
<td style="border: 1px solid #000">
<a style="text-decoration: none" href="">
<font face="Arial" size="1" color="#FFFFFF">- SECURE LOGIN</font></a></td>
</tr>
<tr>
<td style="border: 1px solid #000">
<a style="text-decoration: none" href="/?p=WebMailInfo">
<font face="Arial" size="1" color="#FFFFFF">- WEBMAIL INFO</font></a></td>
</tr>
<tr>
<td style="border: 1px solid #000">
<a style="text-decoration: none" href="http://status.atomnet.co.uk">
<font face="Arial" size="1" color="#FFFFFF">- SERVER INFO</font></a></td>
</tr>
<tr>
<td style="border: 1px solid #000">
<font face="Arial" size="1" color="#FFFFFF">- SERVER STATS</font></td>
</tr>
</table>
<br />
<table border="1" cellspacing="0" width="100%" bgcolor="#660066" style="border-collapse: collapse; border: 1px solid #000" cellpadding="0">
<tr>
<td bgcolor="#00002F" height="15">
<b>
<font face="Arial" size="2" color="#FF6600">F</font><font face="Arial" size="1" color="#FF6600">TP:-</font></b></td>
</tr>
</table>
<table border="1" cellspacing="0" width="100%" style="border-collapse: collapse; border: 1px solid #000; background-image: url('/ss/blueback.gif')" cellpadding="0" >
<tr>
<td style="border: 1px solid #000">
<a style="text-decoration: none" href="ftp://Free:Loader@atomnet.co.uk">
<font face="Arial" size="1" color="#FFFFFF">- ACCESS</font></a></td>
</tr>
<tr>
<td style="border: 1px solid #000">
<a style="text-decoration: none" href="ftp://login@atomnet.co.uk">
<font face="Arial" size="1" color="#FFFFFF">- LOGIN</font></a></td>
</tr>
<tr>
<td style="border: 1px solid #000">
<a style="text-decoration: none" href="/?p=FTPInfo">
<font face="Arial" size="1" color="#FFFFFF">- INFO</font></a></td>
</tr>
<tr>
<td style="border: 1px solid #000">
<a style="text-decoration: none" href="/?p=FTPBans">
<font face="Arial" size="1" color="#FFFFFF">- BANS</font></a></td>
</tr>
</table>
<br />
<table border="1" cellspacing="0" width="100%" bgcolor="#00002F" style="border-collapse: collapse; border: 1px solid #000" cellpadding="0">
<tr>
<td>
<b><font face="Arial" color="#FF6600" size="2">A</font><font face="Arial" size="1" color="#FF6600">miga FM:-</font></b></td>
</tr>
</table>
<table border="1" cellspacing="0" width="100%" style="border-collapse: collapse; border: 1px solid #000; background-image: url('/ss/redback.jpg')" cellpadding="0" >
<tr>
<td style="border: 1px solid #000">
<font face="Arial" size="1" color="#FFFFFF">-
</font>
<a style="text-decoration: none" href="/?p=RadioInfo">
<font face="Arial" size="1" color="#FFFFFF">INFORMATION</font></a></td>
</tr>
<tr>
<td style="border: 1px solid #000">
<font face="Arial" size="1" color="#FFFFFF">-
</font>
<a style="text-decoration: none" href="http://atomnet.co.uk:8000">
<font face="Arial" size="1" color="#FFFFFF">STREAM INFO</font></a></td>
</tr>
<tr>
<td style="border: 1px solid #000">
<font face="Arial" size="1" color="#FFFFFF">-
</font>
<a style="text-decoration: none" href="http://atomnet.co.uk:8000/listen.pls"><font face="Arial" size="1" color="#FFFFFF">TUNE-IN!</font></a></td>
</tr>
</table>
<br />
<table border="1" cellspacing="0" width="100%" bgcolor="#00002F" style="border-collapse: collapse; border: 1px solid #000" cellpadding="0">
<tr>
<td width="128" height="15">
<b><font face="Arial" size="2" color="#FF6600">A</font><font face="Arial" size="1" color="#FF6600">C Hosted Sites:-</font></b></td>
</tr>
</table>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border: 1px solid #000" width="100%">
<tr>
<td bgcolor="#063535" align="center" height="25px">
<a href="http://obsidian.atomnet.co.uk"><font face="Arial" size="2" color="#FFFFFF">.:: Obsidian ::.</font></a></td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<table border="1" cellspacing="0" width="100%" bgcolor="#00002F" style="border-collapse: collapse; border: 1px solid #000" cellpadding="0">
<tr>
<td>
<b><font face="Arial" color="#FF6600" size="2">S</font><font face="Arial" size="1" color="#FF6600">ite Tally:-</font></b></td>
</tr>
</table>
<?php
// Amiga-Links Count
mysql_connect('localhost');
mysql_select_db("amigagames");
$SQL ="SELECT * FROM `links`";
$SQL_Result=mysql_db_query('amigagames', $SQL);
$amigalinks=mysql_num_rows($SQL_Result);
// Amiga-Games Count
mysql_connect('localhost');
mysql_select_db("amigagames");
$SQL ="SELECT * FROM `games`";
$SQL_Result=mysql_db_query('amigagames', $SQL);
$amigagames=mysql_num_rows($SQL_Result);
// Comedy Store Count
mysql_connect('localhost');
mysql_select_db("site");
$SQL ="SELECT * FROM `comedystore`";
$SQL_Result=mysql_db_query('site', $SQL);
$comedystore=mysql_num_rows($SQL_Result);
// Joke Count
mysql_connect('localhost');
mysql_select_db("site");
$SQL ="SELECT * FROM `longjokes`";
$SQL_Result=mysql_db_query('site', $SQL);
$jokes=mysql_num_rows($SQL_Result);
// Guides Count
mysql_connect('localhost');
mysql_select_db("site");
$SQL ="SELECT * FROM `guides`";
$SQL_Result=mysql_db_query('site', $SQL);
$guides=mysql_num_rows($SQL_Result);
// Review Count
mysql_connect('localhost');
mysql_select_db("site");
$SQL ="SELECT * FROM `reviews`";
$SQL_Result=mysql_db_query('site', $SQL);
$reviews=mysql_num_rows($SQL_Result);
echo " <table border=\"1\" cellspacing=\"0\" width=\"100%\" style=\"border-collapse: collapse; border: 1px solid #000; background-image: url('/ss/purpleback.gif')\" cellpadding=\"0\" >
<tr>
<td style=\"border: 1px solid #000\">
<font face=\"Arial\" size=\"1\" color=\"#FFFFFF\">-
</font>
<font face=\"Arial\" size=\"1\" color=\"#FFFFFF\">$amigagames Amiga Games</font></td>
</tr>
<tr>
<td style=\"border: 1px solid #000\">
<font face=\"Arial\" size=\"1\" color=\"#FFFFFF\">-
</font>
<font face=\"Arial\" size=\"1\" color=\"#FFFFFF\">$amigalinks Amiga Links</font></td>
</tr>
<tr>
<td style=\"border: 1px solid #000\">
<font face=\"Arial\" size=\"1\" color=\"#FFFFFF\">-
</font>
<font face=\"Arial\" size=\"1\" color=\"#FFFFFF\">$comedystore Comedy Store clips</font></td>
</tr>
<tr>
<td style=\"border: 1px solid #000\">
<font face=\"Arial\" size=\"1\" color=\"#FFFFFF\">-
</font>
<font face=\"Arial\" size=\"1\" color=\"#FFFFFF\">$jokes Jokes</font></td>
</tr>
<tr>
<td style=\"border: 1px solid #000\">
<font face=\"Arial\" size=\"1\" color=\"#FFFFFF\">-
</font>
<font face=\"Arial\" size=\"1\" color=\"#FFFFFF\">$guides Guides</font></td>
</tr>
<tr>
<td style=\"border: 1px solid #000\">
<font face=\"Arial\" size=\"1\" color=\"#FFFFFF\">-
</font>
<font face=\"Arial\" size=\"1\" color=\"#FFFFFF\">$reviews Reviews</font></td>
</tr>
</table>";
?>
<br />
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>[/php]
It is NOTHING to do with this code, it is ONLY the small piece that I pasted. The piece that you keep quoting has no relevance what-so-ever.
Please, when posting HTML, can you encase all instances inside the PHP tags.
[php]Sorry, now that I know what the php tag does and syntax of how to use it, will do so.[/php]
John D.
It's not like I told you 3 times or anything.
Now that I can see your post Ageek, it makes even less sense. You are ending the entire main page where the news is, directly before the news even starts. It will look unconcieveably stupid.
You have also set it to 80%. I don't want it to take up 80%. I want it to take up 820px. As I said before, this value just acts as a MAXIMUM, it should still shrink down (which all the other pages do). If I wanted 80% I would have just stuck with my CSSv2 absolute positioning structure.
I was trying to show a principle, not understood, am withdrawing from thread and convo. Model how IE implicitly layers tables within cells, which is what the code that does not collapse does.
John.
It blatantly doesn't otherwise all tables inside that cell would be stuck at 820px, which they aren't (as shown by every other page on the site).
The problem is, the table didn't have a size at all (niether in px or %, all it needed was a 100% specified) as shown below:
[php]<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=\"100%\">
<tr>
<td style=\"background-image: url('http://atomnet.co.uk/dl?ss=newsbar')\"><div class=\"newstitle\">$Date -::- $Title</div></td>
<td align=\"right\" style=\"background-image: url('http://atomnet.co.uk/dl?ss=newsbar')\"><div class=\"newstitle\">$Poster</div></td>
</tr>
<tr>
<td width=\"100%\" colspan=\"2\">
<img style=\"Margin-top: 11px; Margin-bottom: 15px; Margin-right: 14px; Margin-left: 9px; BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid\"
height=\"75\" hspace=\"0\" src=\"/dl?newsi=newsthumb$id\" width=\"85\" border=\"0\" align=\"left\" alt=\"$Title\" />
<div style=\"color: #DCDCDC; font: 8pt Verdana; margin: 2px 0px 0px 14px;\">$NewsBody</div></td>
</tr>
<tr>
<td></td>
<td align=\"right\"><a href=\"#Top\"><img style=\"border: 1px solid #110055;\" src=\"/dl?newsi=top\" alt=\"Back to Top\" /></a></td>
</tr>
</table>[/php]
It's not not solving the issue that is the problem. It is TELLING me that I am doing something completely wrong, when I know what I am being told is completely wrong. I think you will find it has nothing to do with "Growing up" See your other "insult" post for more info.
Couldn't you get across the same points by saying things like, "I see what you're saying, Ageek, but I believe that you're not exactly following me. Thank you for your help anyway, it is appreciated." And about John's misinformation, at least he is attempting to contribute. Some of his "facts" might not be, but I've seen him take a lot of criticism from many people and yet he still attempts to help when he feels he can. Are John's posts long-winded and often difficult to understand? Yes. Does he purposefully mean to misinform people? I seriously doubt it.
As for my "other 'insult' post," it was not meant as an insult, otherwise I would have called you names or something else immature. All I did was state a fact: you're a rude person. You don't have to be, though, you choose to. There's a saying, "you catch more flies with honey than you do vinegar." Perhaps using a little bit of "sweetness" in your posts would make them more well received by some.
Anyway, I've said my peace. Mr. Kwitko or another mod/admin doesn't need to close this thread. The only reason I posted this in the thread, rather that in a PM is because I felt it might do more good that way.
FYI-- I posted the snippet to show you what would happen. The table end was to unbreak the forum thread.
Point was and is, when you do have a table in a cell the table inside can override the outer table in IE. You did not define outer table, the inner table ruled. I am not going to build your code, I find you rude also, but cared enough to tell you what to look for and what to avoid as a rule.
You want handouts and use words that are insulting when you do not get them. Period. From now on I will not bother to answer your requests for help. I have dealt with layering implicits for 4 years, and seen them since Windows 95 was NEW. bye.
John D.