PDA

View Full Version : Linespaces caused by <form> tags?


jonwilliams
04-Mar-2003, 04:38 PM
Hi

I had a problem a couple of threads back of annoying line spaces appearing under 3 column tables of section link images. Chris Dicken's reply was
If you have established it is not coming from Act-SectionLine.html then it will be the code within 'Design | Text | Webiste | HTML' in prompts ID 1187, 1188, 1189 and 1190 which builds a table around your section links in order to lay them out in columns.
but unfortunately that doesn't seem to be it.

I think the problem may be caused by <form></form> tags which Actinic is generating around the appropriate bits of html. Having read up a bit elsewhere, there are a few ways around this, such as specifying no spacing or padding within the form tags, but as these are generated by Actinic, is this possible to do?

Can anyone help?

Sorry - I am trying to learn html and Actinic at the same time ;)

Thanks
Jon

andyk
05-Mar-2003, 02:10 PM
Hiya,

This is a general html problem... forms always have a bit of space under the bottom (god only knows why, but thats the way it is).

The best solution i've found to fix this is to put your form inside a table and put the form tags *outside* the td tags like below:


<table width="100%">
<tr>
<form name="whatever" action="whatever" method="post">
<td> **FORM CONTENT HERE** </td>
</form>
</table>


Hope that helps!

Andy

jonwilliams
05-Mar-2003, 05:32 PM
Andy

That's fine if you can see the form, i.e. it's one you have access to/control over via the templates. But these ones are (I think) generated by Actinic (possibly by NETQUOTEVAR:PRODUCTFORMEND in Act_productline.html which would account for the space below products, although not for the gap below section images as there is no NETQUOTEVAR:PRODUCTFORMEND in Act_Sectionline.html). I've had a skirt through the Design Text but can't see anything obvious there.

Confused? You bet!

Cheers
Jon :confused:

cdicken
06-Mar-2003, 01:25 PM
NETQUOTEVAR:PRODUCTFORMBEGIN and NETQUOTEVAR:PRODUCTFORMEND are all outside <tr> tags in the main product table, so this will not be causing spaces to occur.

I thought your problem is to do with sections rather than products. Act_SectionLine.html does have cellpadding=10 within the <table> tag though which would cause padding all around a section link. Try changing this to cellpadding=0.

jonwilliams
06-Mar-2003, 01:35 PM
Chris

I have already done that, plus any other cellpadding I can see in the templates.

It is most noticeable where I have a product which appears below two rows of three section images on the main catalog page - the space is below the section images and above the seperator line. When on product pages, the gap appears after the products and before some bottom of page formatting I have, which is not such a problem.

Does anyone else have this problem?

Jon

pinbrook_nick
06-Mar-2003, 06:43 PM
I have found sometimes commenting in the templates can cause the odd extra space. (After backing up your template) try stripping out commenting in the relevant templates.

jonwilliams
07-Mar-2003, 10:38 AM
Thanks Nick but that doesn't seem to have done it either.

Any other ideas?

Thanks
Jon

cdicken
07-Mar-2003, 03:09 PM
Can you please post up a screenshot and indicate where the gaps are that you want to remove.

jonwilliams
07-Mar-2003, 03:50 PM
Certainly...screenshot attached below.

The graphics are section links and the account registration is a product (a la AUG).

Cheers
Jon

pinbrook_nick
07-Mar-2003, 06:21 PM
What is the web address of the site, or have you not uploaded it yet? I may be able to help if I can view the source code.

cdicken
10-Mar-2003, 10:47 AM
Looking at http://www.moorclose.co.uk/acatalog/Shop_by_country.html this code:

<font face="Arial" size="2">&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</font>

which I guess is in your Act_ProductBody.html template is causing some of the gap.

jonwilliams
11-Mar-2003, 08:46 AM
Sorry - been away....

The full address of the test site (Nick, or anyone else) is http://www.moorclose.co.uk/acatalog/brochurehome.html

Will have a look at Chris's suggestion shortly but I thought I had cleaned down all the templates, so I don't know where all that has come from.

I can't make any changes now as my demo version has run out, but signs are looking hopeful that the test site will become reality, so will be shaking the dust off the wallet at that point...

Thanks all

Jon :)