HTML not working in agreement.html template.

Discussion in 'Templates customization' started by ukonline, Oct 1, 2008.

  1. ukonline

    ukonline New Member

    Joined:
    Apr 30, 2008
    Messages:
    3
    Hi all,

    I have a problem with text formatting
    and cell spacing on the agreement.html
    template:

    Here's my code:

    ===================================================

    {assign var="title" value=$smarty.const._TPL_AGREEMENT_TITLE}
    {include file="header.html"}
    {include file="error.inc.html"}

    #_TPL_AGREEMENT_REED_AGREE#<br />

    <br>

    <table cellpadding="10px" style='background-color: #e0e0e0; width: 80%'>

    <tr>
    <td>


    <p>content for agreement</p>

    </td>
    </tr>
    </table

    <form method="post" action="{$smarty.server.PHP_SELF|escape}">
    <strong>#_TPL_AGREEMENT_AGREE#</strong>
    <input type="checkbox" name="i_agree" value="1" />

    <input type="submit" value="&nbsp;&nbsp;&nbsp;#_TPL_AGREEMENT_CONTINUE_BUT#&nbsp;&nbsp;&nbsp;" />
    <input type="hidden" name="do_agreement" value="1" />
    <input type="hidden" name="data" value="{$data|escape}" />
    </form>

    <br>

    {include file="footer.html"}

    =============================================

    At first, after pasting in the formatted text, I had a major problem.

    The browser showed the text width too wide to fit in the window.

    So I removed the <pre> and <center> tags and corresponding closing </pre> and </center> tags which were inside the table column <td> tags.

    This worked fine except for line spacing problems and there was no space between the edge of the table and the text.

    Then all I did was added a cellpadding attribute value to the table opening tag and pasted in my html agreement text which is formatted with simple paragraph <p> tags.

    The problem is, the cellpadding is not recognized and the <p> tags have the same effect as line breaks, <br>. ie. there is no space between paragraphs!

    Very strange.

    Any help appreciated. I've refreshed my browser numerous times. No difference.

    You can see the problem here:

    http://www.joblotsources.co.uk/signup.php

    (You need to fill out the form before you see the agreement page.)

    Brian.

Share This Page