the space between one table and the next

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
negblo
Forum Newbie
Posts: 19
Joined: Fri Jun 06, 2003 1:17 pm

the space between one table and the next

Post 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
JPlush76
Forum Regular
Posts: 819
Joined: Thu Aug 01, 2002 5:42 pm
Location: Los Angeles, CA
Contact:

Post 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.
User avatar
delorian
Forum Contributor
Posts: 223
Joined: Sun May 04, 2003 5:20 pm
Location: Olsztyn, Poland

Post 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.
RFairey
Forum Commoner
Posts: 52
Joined: Fri Jun 06, 2003 5:23 pm

Post 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
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

negblo: It would help to see the code you are referring to.
negblo
Forum Newbie
Posts: 19
Joined: Fri Jun 06, 2003 1:17 pm

thanks!!!

Post 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
Post Reply