Strange spacing for tables

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
matter
Regular
Posts: 9
Joined: Mon Feb 22, 2010 2:59 pm

Strange spacing for tables

Post 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
sonichouse
Regular
Posts: 196
Joined: Sun May 11, 2008 2:53 am
Contact:

Re: Strange spacing for tables

Post by sonichouse »

The gap is caused by repeated <br> statements. The Nicaraguan post has many of these before the table div.
Steve is occasionally blogging here
matter
Regular
Posts: 9
Joined: Mon Feb 22, 2010 2:59 pm

Re: Strange spacing for tables

Post 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
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Strange spacing for tables

Post by Don Chambers »

The problem was likely the event plugin nl2br.
=Don=
Post Reply