Page 1 of 1

Strange spacing for tables

Posted: Sun Apr 18, 2010 2:40 pm
by matter
Hi All,

I've been trying to troubleshoot a very odd bug in my blog http://www.mattrosales.com/. I decided that I wanted my photos to be displayed in a grid, so I am using simple table html to put my media in:

Code: Select all

<div align=center><table border=0>
<tr>
<td>image</td>
<td>another image</td>
<td>a third image</td>
</tr>
</table></div>
For whatever reason, this is adding very large amounts of blank space above the table. I'm using a slightly modded version of the reflection template, but I've been through the css and the php and can't seem to figure out why the space is being added. (Check out the last two posts on the blog to see what I'm talking about). Does anyone have ideas for debugging this? Thanks,

Matt

Re: Strange spacing for tables

Posted: Sun Apr 18, 2010 3:55 pm
by sonichouse
The gap is caused by repeated <br> statements. The Nicaraguan post has many of these before the table div.

Re: Strange spacing for tables

Posted: Sun Apr 18, 2010 4:42 pm
by matter
I fixed the problem- it was some kind of compatibility issue between one or more of the markup plugins I had installed. I removed 3 that I didn't use and the problem corrected itself. Thanks for the help,
Matt

Re: Strange spacing for tables

Posted: Mon Apr 19, 2010 10:59 pm
by Don Chambers
The problem was likely the event plugin nl2br.