this is driving me crazy

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
pb2ya
Forum Commoner
Posts: 42
Joined: Sat Jul 06, 2002 5:20 pm
Location: ATL
Contact:

this is driving me crazy

Post by pb2ya »

ok, after almost 2 years of experience, i thought i was an html expert. wrong. ok, im writing the new template for mah site, and i wrote this code. but, the text wont show up when i put it in a certain spot...

<html>
<head>
</head>
<body bgcolor="#030184" leftmargin="0" topmargin="0" text="#00C6FF" link="#BCF0FF" alink="#BCF0FF" vlink="#BCF0FF">
<table height="100%" width="100%" border="0" cellspacing="0" cellpadding="0" align="left">
<tr width="500" height="100%">
<td background="images/mid-bg.gif" valign="top" align="left" height="100%" width="500">
<table border="0" cellspacing="0" cellpadding="0" align="left">
<tr height="19">
<td height="19" width="164" background="images/top-img.gif">&nbsp;</td>
<td height="19" width="336" background="images/top-bg.gif" valign="center"><font size="-2">[ <a href="http://pb.2ya.com/ntwk/" alt="network">.NTWK</a> ] [ <a href="http://pb.2ya.com/main/">.MAIN</a> ] [ <a href="http://pb.2ya.com/amid/" alt="Anime/Manga images directory">.IMGS</a> ][ <a href="http://pb.2ya.com/t100/" alt="top 100">.T100</a> ]</font>
</td>
</tr><tr><td background="mid-img.jpg" height="196" width="500" colspan="2" valign="bottom"><form name="drop_down" method="POST"> <select name="selections" size="1" onChange="location.href=options[selectedIndex].value; return true;">
<option selected="selected">.Main Navigation</option>
<option >---------------------</option>
<option value="index.php">home</option>
<option value="news.php">news</option>
<option value="rants.php">rants</option>
<option value="staff.php">staff profiles</option>
<option value="history.php">history</option>
<option value="index.html">support us</option>
</select></form></td></tr>
</table>

this text wont show up
</td>
<td height="100%" bgcolor="#030184" valign="top"><font color=#030184 size="-1">x</font>
<table border="1" bordercolor="#ffffff" cellspacing="1" cellpadding="0" align="left">
<tr>
<td background="images/tbl-bg.gif" align="center" width="100"><font color="#ffffff" size="+1" face="fixedsys">Random Stuff</td>
</tr>
<td valign="top" align="center">&nbsp;
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>

the text wont show up there, even though the table tags are nested and ended properly. the real page is here:
http://members.lycos.co.uk/pb2ya/index.html (let the ad disappear before looking)
ok, some1 PLZ tell me why the text will not show up, and how i can fix it :)
User avatar
mydimension
Moderator
Posts: 531
Joined: Tue Apr 23, 2002 6:00 pm
Location: Lowell, MA USA
Contact:

Post by mydimension »

its probably a browser compliance problem cause i see it fine using Mozilla 1.1
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

there are still some structure errors but anyway - that may be 'cut&paste'-errors
<table border="0" cellspacing="0" cellpadding="0" align="left">
because of align="left" the browser will render the remaining content after </table> at the right side of the table, but there is no space left. Just delete the align="left" from the inner table-element
Coco
Forum Contributor
Posts: 339
Joined: Sat Sep 07, 2002 5:28 am
Location: Leeds, UK
Contact:

Post by Coco »

try this:
</table> <br>
this text wont show up
</td>
:)

also, even if a tables height is 100%, is that height limited by the background image?
pb2ya
Forum Commoner
Posts: 42
Joined: Sat Jul 06, 2002 5:20 pm
Location: ATL
Contact:

Post by pb2ya »

try this:
</table> <br>
this text wont show up
</td>
I had tried that before you posted, and it wont work.
there are still some structure errors but anyway - that may be 'cut&paste'-error. because of align="left" the browser will render the remaining content after at the right side of the table, but there is no space left. Just delete the align="left" from the inner table-element
that works for that reason. Well, thanks, I never would have thought of that :lol: . Thanx.
And about that mozilla thing, I tested this on netscape, ie, and dreamcast browsers, and forgot mozilla. BTW, where can I get older versions of browsers to test mah pages.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Lots and lots of browsers:
http://browsers.evolt.org/

Mac
Post Reply