Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
stopping table resize?
Old 07-22-2007, 07:27 PM stopping table resize?
Novice Talker

Posts: 5
Name: Your mother
Trades: 0
Hi, I have made my own little website complete with it's own template but when I make a line too long it resizes the table automatically and screws up the template. So my question is, how can I stop that from happening?
dazappa is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-22-2007, 07:41 PM Re: stopping table resize?
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
You may need to set a size for the table cell. Can you show us your code or a link to the site?
angele803 is offline
Reply With Quote
View Public Profile
 
Old 07-22-2007, 07:45 PM Re: stopping table resize?
Novice Talker

Posts: 5
Name: Your mother
Trades: 0
Go to kingoflands.110mb.com enter the user as newacc and pass as accnew then keep clicking around until you get to the imagemap and click the crappily made "inn" on that page you'll notice the template be screwed up =)

Oh and please note this account will be deleted after my problem is solved and the site is still very under-development so many links don't work xP

Last edited by dazappa; 07-22-2007 at 07:46 PM..
dazappa is offline
Reply With Quote
View Public Profile
 
Old 07-22-2007, 07:55 PM Re: stopping table resize?
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
I am pretty sure it has to do with table widths. Your background image is repeating. I see that you have declared widths on the <td>, but try to specify a width for the table itself. I think that will solve the problem.
angele803 is offline
Reply With Quote
View Public Profile
 
Old 07-22-2007, 08:02 PM Re: stopping table resize?
Novice Talker

Posts: 5
Name: Your mother
Trades: 0
Didn't appear to fix it. It somewhat worked and then when I spammed 55 "w"s it failed xD. I chose W because I think it takes the most space up.
dazappa is offline
Reply With Quote
View Public Profile
 
Old 07-22-2007, 09:23 PM Re: stopping table resize?
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
Okay, here are a few things.
1. Your form is missing its closing tag (it goes to chat.php)
2. It could be to do with the way you have the site programmed, but you do not have a doctype declared, the page is not wrapped in html tags, and there is no Head tag, but you have a title (which is supposed to be wrapped in head tags).
3. Put some spaces between the "W"s. Normal words have spacings between them and when I put spaces between them, they wrapped properly.
4. Put the text within the td's in paragraph tags.
5. There were a few stray closing tags

Here is the code I came up with that seems to work:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>King of lands - Inn</title>
</head>

<body>

<BODY link='#000000' alink='#000000' vlink='#000000'>
<table border="0" align=center cellspacing="0" width="510">
<tr><td background="./images/topbanner.gif" width="510" height="22" colspan="3"></td><td bgcolor="#0099FF" background="./images/tlcorner.gif" width="19" height="22"></td><td bgcolor="#0099FF" width="85" height="22"></td><td background="./images/trcorner.gif" width="19" height="22"></td></tr>
<tr><td bgcolor="#0099FF" width="22" height="22"></td><td width="456"><center><img src="./images/logo.gif"></center></td><td bgcolor="#0099FF" width="22" height="22">&nbsp;</td><td bgcolor="#0099FF" width="19" height="22"></td><td>
<table border="0">
<tr>Hp: 100/100<td width='100' height='16' bgcolor='#000000'><table border='0'><td bgcolor='#00FF00' width='100' height='16'></td></tr></td></tr>
</table></table><hr>Mp: 20/20</td><td bgcolor="#0099FF" width="19" height="22"></td></tr>
<tr><td bgcolor="#0099FF" width="510" height="22" colspan="3"><center><a href="index.html">Home</a> - <a href="donate.html">Donate</a> - <a href="about.html">About</a> - <a href="login.html">Login</a> - <a href="register.html">Register</a> - <a href="./forum">Forums</a> - <a href="./userstats.php">Top 100 players</a></center></td><td bgcolor="#0099FF" width="19" height="22"></td><td><center><a href="shop.php"><b>>> KoL shop! <<</b></a></center></td><td bgcolor="#0099FF" width="19" height="22"></td></tr>

<tr><td bgcolor="#0099FF" width="22" height="110"></td>

<td  height="110">

<center>
<p>
<h1>The town inn</h1> </center>
<br>Here you can rest a while or talk with other online players.
<hr>get room here..
<hr>[newacc] hi again D=<br>[newacc] i like pie =D<br>[newacc 2007/07/23] date test :O<br>[newacc 2007/07/23] ddddddddddddddddddddddddddddddddddddddddddddddddddddddd<br>[newacc 2007/07/23] WWWWWWWWWWWWWWW<br>[newacc 2007/07/23] WWWWWWWWWWWWWWWWWWWWWWWWWW<br>[newacc 2007/07/23 1185144504] time test<br>[newacc 12:57:52 Jul 23] hehehe<br>[newacc 12:59:31am Jul 23] meh<br>
[newacc 1:58:08am Jul 23] WWWWWWWWWWWWWW WWWWWWWWW WWWWW WWWWWWWWWW WW WWWWW WWWWW WWWWW<br>
</p>
<form action='chat.php' method='post'>
<br><input type='text' size='55' maxlength='55' name='cbox'><input type='submit' value='Say'>
</form>
<br><a href="townmap.php?t=1">Return to town</a>
<td bgcolor="#0099FF" width="22" height="110"></td><td bgcolor="#0099FF" width="19" height="22"></td><td valign="top">
<center>
<br>Logged in as:
<br><b>newacc</b><hr><a href="stats.php">My stats</a>
<br><a href="inv.php">Inventory</a>
</center>
</td><td bgcolor="#0099FF" width="19" height="22"></td>
<tr><td background="./images/botbanner.gif" width="510" height="22" colspan="3"></td><td background="./images/blcorner.gif" width="22" height="22"></td><td bgcolor="#0099FF" width="88" height="22"></td><td background="./images/brcorner.gif" width="19" height="22"></td></tr>
</table>
</body>
</body>
</html>
It is still a little messy, but it seems to work.
Let me know if it works out for you.
angele803 is offline
Reply With Quote
View Public Profile
 
Old 07-22-2007, 10:13 PM Re: stopping table resize?
Novice Talker

Posts: 5
Name: Your mother
Trades: 0
Thanks for all your help, but that page will be open to the public meaning they can type whatever they feel like (which would mess up the page for anyone who views it) I suppose if it can't be helped too bad, but I'll try your way =) Oh and if possible could you show me which tags need closing? I didn't think I missed any =/

Last edited by dazappa; 07-22-2007 at 10:15 PM..
dazappa is offline
Reply With Quote
View Public Profile
 
Old 07-22-2007, 10:29 PM Re: stopping table resize?
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
Youre welcome!
Hopefully people will just type words and not big strings of random letters. With no spaces, the table just keeps expanding because it doesnt know where to stop.
The extra closing tags I found were:
a td closing tag after "return to town"
and
the tr closing tag here:
Code:
<br><a href="inv.php">Inventory</a>
</center>
</td><td bgcolor="#0099FF" width="19" height="22"></td></tr>
angele803 is offline
Reply With Quote
View Public Profile
 
Old 07-22-2007, 11:01 PM Re: stopping table resize?
Novice Talker

Posts: 5
Name: Your mother
Trades: 0
Ok well I AM sorry you took the trouble to reformat it all (mostly) it's because I create that page dynamically with php and thus can't tell what I'm doing half the time. Anyways I believe the paragraph tags and the table width together made it worked! Thank you a LOT!
dazappa is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to stopping table resize?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28052 seconds with 12 queries