PDA

View Full Version : Using tables in customise gallery - empty space!


itchyfeet
Jun-25-2005, 02:41 AM
Hi

I have one gallery which has no pictures. I use it simply to store text.

So that I can display the text neatly, I want to use tables to align the dates and following text. However, I find that when I put the code into the customize gallery section, and save it, there is a big empty space before the table actually begins. Could someone please help?

The code I have used in the 'customise gallery' section is as follows:

<div class="opening">News</div>
<div style="font-size: 12px; color: #000000; font-weight: normal">
<font color="#CC9900"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr><td width="15%"><font color="#CC9900"><b>10 July 05</b></font></td><td width="85%">Departure date</td></tr>
<tr><td width="15%"><font color="#CC9900"><b>6 July 05</b></font></td><td width="85%">Leaving bash</td></tr>
<tr><td width="15%"><font color="#CC9900"><b>23 June 05</b></font></td><td width="85%">Last day of Law School. FREEDOM!</td></tr>
</table>

</div><style type="text/css"> .nophotos { display: none; } .opening { display: none; } </style>

Thanks for any help!
Elliot

{JT}
Jun-25-2005, 06:27 AM
A link to the gallery in question would be better so I can visualize it :)

Hi

I have one gallery which has no pictures. I use it simply to store text.

So that I can display the text neatly, I want to use tables to align the dates and following text. However, I find that when I put the code into the customize gallery section, and save it, there is a big empty space before the table actually begins. Could someone please help?

The code I have used in the 'customise gallery' section is as follows:

<div class="opening">News</div>
<div style="font-size: 12px; color: #000000; font-weight: normal">
<font color="#CC9900"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr><td width="15%"><font color="#CC9900"><b>10 July 05</b></font></td><td width="85%">Departure date</td></tr>
<tr><td width="15%"><font color="#CC9900"><b>6 July 05</b></font></td><td width="85%">Leaving bash</td></tr>
<tr><td width="15%"><font color="#CC9900"><b>23 June 05</b></font></td><td width="85%">Last day of Law School. FREEDOM!</td></tr>
</table>

</div><style type="text/css"> .nophotos { display: none; } .opening { display: none; } </style>

Thanks for any help!
Elliot

itchyfeet
Jun-25-2005, 06:38 AM
A link to the gallery in question would be better so I can visualize it :)
Thanks - i seem to have fixed the problem...I think it was because I should have not had a line break in the code...that seems to have sorted it. Thanks anyway!