Extra space coming from nowhere?

If you go to my page... <!-- m --><a class="postlink" href="http://www.everythingandtwo.com/main3.php">http://www.everythingandtwo.com/main3.php</a><!-- m -->, and then go to the "playlist" section, you'll notice there's quite a bit of extra space below the text. You can probably scroll all of the text off the screen depending on your resolution. <br />
<br />
When I checked my code, there were no line breaks after the text so I am clueless as to what is causing this. All the text with the exception of the menu is generated by PHP, but I've pasted the PHP that generates the playlist on a separate page and it displays fine with no space at the bottom. <br />
<br />
Does anyone have any clue as to what is happening here? If so, how can I fix it? <br />
<br />
Thanks,<br />
Brad<!--content-->1) javascript doesn't work in Mozilla 1.2<br />
<br />
2) i see no extra space at all in IE6!<br />
<br />
3) j/s error: line 53 'text' is undefined<!--content-->You must've looked at it right after I took out a bunch of code...haha. <br />
<br />
I figured out why it has a bunch of space at the end though. It's because I'm using <div> tags to separate my sections and a container <div> to hold everything. Well, the page will scroll to the length of the longest section even if it's not visible. That's why I have the extra space in the other sections. Not a big deal but it drives me nuts for some reason.<br />
<br />
The reason the Javascript didn't work was because I took out my "text" <div> I think. Anyway, thanks for checking it out. Take care.<!--content-->Originally posted by transmothra <br />
1) javascript doesn't work in Mozilla 1.2 <br />
Who said that?????<!--content-->line 53 'text' is undefined<br />
<br />
You've tried to do onClick="show(text);" and onClick="hide(text);" at the "Blog" and "Playlist" links.<br />
<br />
There is no such element named "text". What have you tried to do?<!--content-->Originally posted by scoutt <br />
Who said that????? no, i meant that that particular script wasn't working.<!--content-->ahhh :D I thought so<!--content-->Heh! Valid and well-formed Code (<!-- m --><a class="postlink" href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.everythingandtwo.com%2Fmain3.php&charset=%28detect+automatically%29&doctype=%28detect+automatically%29&ss=1&outline=1&sp=1&verbose=1">http://validator.w3.org/check?uri=http% ... &verbose=1</a><!-- m -->).<br />
<br />
One note. Table data is best done as one line with the tags: <br />
<td> blah blah </td> as splitting over several lines can sometimes add in odd spaces.<!--content-->So if I have a huge long PHP script, I should put it all on one line w/ no wrapping? Hmm....doesn't make sense to me. HTML ignores white space so it shouldn't matter whether it's on one line or not.<!--content-->Some browsers will display:<br />
<br />
<td><br />
blah<br />
</td><br />
<br />
differently to how thay display:<br />
<br />
<td> blah </td><br />
<br />
with the first example including some unwanted spaces.<br />
<br />
It is best to have the <td> and the </td> on the same line as other data that goes inside the cell. In your case you might need:<br />
<br />
<br />
<td> blah<br><br />
<blah><br><br />
<blah> </td><!--content-->Originally posted by everythingand2 <br />
So if I have a huge long PHP script, I should put it all on one line w/ no wrapping? Hmm....doesn't make sense to me. HTML ignores white space so it shouldn't matter whether it's on one line or not. <br />
with php no you don't want it on one line. but html doesn't ignore white space.<br />
<br />
if you have this<br />
<br />
<td><br />
text<br />
</td><br />
<br />
it WILL add an extra line so that means it doesn't ignore white space. trust us we aren't pulling your leg. that is why it is best to keep HTML on 1 line for tables not everything else.<!--content-->
 
Back
Top