PDA

View Full Version : Space in customised fragment layout


Louise West
09-Jun-2003, 09:46 AM
Hi,

I have created a customised version of Act_ImageOnly.html for the layout of a fragment. I have added my own html table so that when the user chooses the Image in the properties box it will use my template and put the image into my table to obtain a customised border around the image.

It inserts the image correctly but puts a small space below the image so the table border doesn't sit tight to the image.

I have taken out all spaces, line breaks etc so the html is compact. I also have "Compact HTML/CGI" turned on.

Any ideas?.

wombatboy
09-Jun-2003, 11:21 AM
1 whether there's a <div> in there (can cause space)
2 any variables exist that have further html pages
3 cell padding
4 vertical alignment of table cells

garyhay
09-Jun-2003, 12:31 PM
set a temporary border on the table to see it more clearly

Louise West
09-Jun-2003, 01:01 PM
I have taken out all alignments and there are no set height or widths for the table. I have cell spacing ="0" and cell padding ="0".

If it helps, my template says:

<TD>NETQUOTEVAR:BROCHURE_IMAGE</TD>

and what comes out is:

<TD><IMG SRC="acatalog/image.jpg" ALT="" BORDER=0 HEIGHT=234 WIDTH=363> </TD>

It puts a space in the html at the end of the image tag. It could be this that is pushing the table down. Any further ideas?. Thanks.

edwardk
09-Jun-2003, 01:23 PM
could you post the page?

Ed

cdicken
11-Jun-2003, 08:36 AM
This one is a pain, but possible to fix.

You need to find the template which inserts the images - called Act_BrochureImage.html. Remove ALL comments and line breaks from the template. You end up with just a single line of code.

If this does not seem to make any difference then check that 'Compact HTML/CGI' is ticked in 'Design Options | Miscellaneous'.

Louise West
11-Jun-2003, 11:39 AM
Thanks that worked a treat. There must have been a space somewhere in the Act_BrochureImage.html template that it was picking up and inserting into my code. Cheers.