View Full Version : Look at my code please
mrenaud
2005-05-16, 11:26 PM
Take a look at
http://www.adultpornos.net/freesite1/warning.html
I screwed something up and now I get 2 white lines between the warning and last banner. It was solid blue color all the way down before.
Change "cellspacing=9" to "cellspacing=0"
mrenaud
2005-05-17, 01:20 AM
Cleo I had this:
<table border=0 width="600" bgcolor=#0099ff cellspacing=9 cellpadding=9>
Changed to what you said:
<table border=0 width="600" bgcolor=#0099ff cellspacing=0 cellpadding=9>
Didn't fix it though, unless I changed the wrong one?
Barron
2005-05-17, 01:35 PM
</td></tr></table></a>
</tr>
<table width=604 border="0">
<tr>
<td BGCOLOR=#3399FF width="600">
<center><h2><font color=#FFFFFF>WARNING</h2></font>
<form method="POST">
I think your table tags are out of sync, this part doesnt appear to be correct:
</tr>
<table width=604 border="0">
<tr>
I didnt follow all the tags, but it seems like either missing a closing </table> tag, or you need a opening <td>.
When I have trouble with tables and cant find the mistake I put a border=1 in all the table tags so I can see what is happening.
Good luck with it :)
-
Barron
2005-05-17, 01:54 PM
Scratch what I just said. I went back and looked, your tables are definetly out of sync.
This is wrong:
<tr>
<td align=center><img src="teenymania/tm_hpa_02.jpg"><br><font size=+2>Teeny Mania gives you over 100,000 teen hardcore pics & 150,000 teen fuck vidoes!</font>
</td>
</tr>
<center>
<! --------------- Recip table -------------------------!>
<table border="0" bordercolor=#0000E6 bgcolor=#0099ff width="600">
I think your missing the closing </table> tag.
A little tip for centering your tables so you can do away with all the <center> tags.
<table width="600" cellspacing="0" cellpadding="0" border="0" align="center">
<tr>
<td>
</td>
</tr>
</table>
or
<html>
<head>
</head>
<body>
<div align=center>
<table width="600" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
</td>
</tr>
</table>
</div>
</body>
</html>
To fix your problem, go back and check all your table, tr and td tags and make sure they all have closing tags in the right spots.
-
yeah, he's left several tags open. I think his problem on the bottom may be that he left the 'form' open, the row (tr) the form is in open, the row with the bottom banner open and the table open.
There are so many open tags it may be easier to just redo the page. You can close all of those tags first and see if that solves your problem tho.
mrenaud
2005-05-17, 05:36 PM
Yes my code was quite messy. I'm not the best with tables just yet, but anyways I was able to fix it by adding a cellpadding=0.
Anybody know of any really good tutorials on tables? I've found some info on them but nothing to great. Thing is I used to code a long time ago some I'm pretty rusty and forget some fundamentals.
Thanks to all
b1ng0
2005-05-17, 07:03 PM
Tables are just like any other HTML, always remember "LIFO", Last In First Out. Some other important things to remember, you can only nest tables inside of <td> tags, and when using colspan or rowspan, the number you use for colspan or rowspan INCLUDES the current table cell you are applying the attribute too. It can still get a bit confusing for me sometimes so for complex tables I usually cheat and use Dreamweaver to basically draw them :p.
Practice will make perfect though... once you've sat in your chair for 10 minutes, scratching your head trying to figure out whats wrong with your code and are about to take a baseball bat to your monitor, and then you finally see where the problem is, you will remember it :D.
vBulletin® v3.8.1, Copyright ©2000-2026, Jelsoft Enterprises Ltd.