Page 1 of 1

the space between one table and the next

Posted: Fri Jun 06, 2003 1:17 pm
by negblo
hello...

new guy to php here, and i seem to have run into a bit of a complication. there is a space inbetween two tables that i have created, and i can not seem to get it to disappear. there is no calling for a 'space' anywhere near the two tables. i have even tried adding a <br> command between them as aposed to a <p> command. is there a setting that i am supposed to use for php to get rid of this extra space? any information you can give me will be greatly appriciated.


Thanx-a-mil

negblo

Posted: Fri Jun 06, 2003 1:23 pm
by JPlush76
so you have
<table cellpadding=0 cellspacing=0 border=0>

?

if you do than you might wanna try the trim() function which trims whitespace and line breaks out of your field just in case there is some junk in there.

Posted: Fri Jun 06, 2003 4:34 pm
by delorian
If I understand you right, you are creating two html tables with php script, right :?: And you want to have no space-line between them, right :?: If so, the problem is in your CSS not in php. Try to modify the margin and padding attribute of your table styles.

Posted: Fri Jun 06, 2003 5:23 pm
by RFairey
Are your closing </TD> and </TR> tags on the same line as the start tag? In IE, a carriage return puts white space between tables so:

<TR><TD>TableContent</TD></TR> works, while,

<TR>
<TD>
TableContent
</TD>
</TR>

is more readable but adds whitespace

Posted: Fri Jun 06, 2003 6:03 pm
by jason
negblo: It would help to see the code you are referring to.

thanks!!!

Posted: Mon Jun 09, 2003 12:13 pm
by negblo
i figured it out. as i was patiently awaiting the arrival of the first reply to this post, i noticed an extra <br> at the bottom of the code. it was tied in with the rest of the code so i just kept over looking it, thinking that is was supposed to be there... silly me...

but if you would like to see the finished product....
http://www.ahm-auctioneers.com

it was for the photo galleries in the individual auction pages. thank you all for your quick responses, i really appriciate it. if you ever need anything let me know!! :D


Thanx-a-mil

negblo