Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   Look at my code please (http://www.greenguysboard.com/board/showthread.php?t=19714)

mrenaud 2005-05-16 10:26 PM

Look at my code please
 
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.

Cleo 2005-05-16 10:37 PM

Change "cellspacing=9" to "cellspacing=0"



mrenaud 2005-05-17 12:20 AM

Cleo I had this:



Changed to what you said:




Didn't fix it though, unless I changed the wrong one?

cd34 2005-05-17 01:19 AM

try cellpadding="0"



Barron 2005-05-17 12:35 PM

Quote:





WARNING



I think your table tags are out of sync, this part doesnt appear to be correct:




I didnt follow all the tags, but it seems like either missing a closing
tag, or you need a opening .

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 12:54 PM

Scratch what I just said. I went back and looked, your tables are definetly out of sync.

This is wrong:
Quote:








Teeny Mania gives you over 100,000 teen hardcore pics & 150,000 teen fuck vidoes!


I think your missing the closing
tag.


A little tip for centering your tables so you can do away with all the
tags.

Quote:








or

















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.


-
Trev 2005-05-17 04:11 PM

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 04: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 06: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
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.


All times are GMT -4. The time now is 08:29 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc